xmpp: Add a bit more logging

This commit is contained in:
PapaTutuWawa 2022-01-23 15:31:01 +01:00
parent 63b698ee8e
commit 3fbe0adfe3

View File

@ -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);
}