onXmppEvent method
- XmppEvent event
override
Called when XmppConnection triggers an event
Implementation
@override
Future<void> onXmppEvent(XmppEvent event) async {
if (event is StreamNegotiationsDoneEvent) {
// Send initial presence only when we have not resumed the stream
if (!event.resumed) {
await sendInitialPresence();
}
}
}