Fix session reset bug

pull/260/head
nielsandriesse 5 years ago
parent 19910c5793
commit 4a08e12752

@ -1240,6 +1240,7 @@ typedef enum : NSUInteger {
[LKStorage writeSyncWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
[LKSessionManagementProtocol startSessionResetInThread:self.thread transaction:transaction];
} error:nil];
[self updateSessionRestoreBanner];
});
}

@ -141,7 +141,6 @@ public final class SessionManagementProtocol : NSObject {
guard let thread = thread as? TSContactThread else {
return print("[Loki] Can't restore session for non contact thread.")
}
guard thread.sessionResetStatus == .none else { return }
// Send end session messages to the devices requiring session restoration
let devices = thread.sessionRestoreDevices // TODO: Rename this to something that reads better
for device in devices {

Loading…
Cancel
Save