xmpp: Add a bit more logging
This commit is contained in:
parent
63b698ee8e
commit
3fbe0adfe3
@ -46,6 +46,7 @@ class MoxxyStreamManagementManager extends StreamManagementManager {
|
||||
Future<void> commitStreamResumptionId() async {
|
||||
final srid = getStreamResumptionId();
|
||||
if (srid != null) {
|
||||
getAttributes().log("Saving resumption token: ${srid}");
|
||||
await GetIt.I.get<XmppRepository>().saveStreamResumptionId(srid);
|
||||
}
|
||||
}
|
||||
@ -53,6 +54,7 @@ class MoxxyStreamManagementManager extends StreamManagementManager {
|
||||
@override
|
||||
Future<void> loadStreamResumptionId() async {
|
||||
final id = await GetIt.I.get<XmppRepository>().getStreamResumptionId();
|
||||
getAttributes().log("Setting resumption token: " + (id ?? ""));
|
||||
if (id != null) {
|
||||
setStreamResumptionId(id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user