We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8b900 commit 3c9ab79Copy full SHA for 3c9ab79
ChatSecure/Classes/View Controllers/OTRMessagesViewController.m
@@ -312,7 +312,13 @@ - (void)updateViewWithKey:(NSString *)key colleciton:(NSString *)collection
312
}
313
314
// Update Buddy Status
315
+ BOOL previousState = self.state.isThreadOnline;
316
self.state.isThreadOnline = buddy.status != OTRThreadStatusOffline;
317
+
318
+ // Auto-inititate OTR when contact comes online
319
+ if (!previousState && self.state.isThreadOnline) {
320
+ [[OTRProtocolManager sharedInstance].encryptionManager maybeRefreshOTRSessionForBuddyKey:key collection:collection];
321
+ }
322
[self didUpdateState];
323
324
//Update Buddy knock status
0 commit comments