fix Session reset confirmation message not displayed

pull/246/head
Ryan ZHAO 4 years ago
parent 5c53c31fec
commit 2d747af959

@ -1 +1 @@
Subproject commit 71f54b041ff9b9a77fecea805aa42ac536392c40
Subproject commit d626be8f621bad9ed9d04d4370cbbb23cc438746

@ -47,10 +47,6 @@ public class LokiSessionResetImplementation : NSObject, SessionResetProtocol {
Logger.debug("[Loki] A new session was adopted but the thread couldn't be found for: \(recipientID).")
return
}
// If the current user initiated the reset then send back a null message to acknowledge the completion of the session reset
if thread.sessionResetStatus == .initiated {
SessionManagementProtocol.sendNullMessage(to: recipientID, in: transaction)
}
// Notify the user
let infoMessage = TSInfoMessage(timestamp: NSDate.ows_millisecondTimeStamp(), in: thread, messageType: .typeLokiSessionResetDone)
infoMessage.save(with: transaction)

Loading…
Cancel
Save