Revision 8358d691 ChatSecure/Classes/Controllers/XMPP/OTRXMPPManager.m
| ChatSecure/Classes/Controllers/XMPP/OTRXMPPManager.m | ||
|---|---|---|
| 877 | 877 |
|
| 878 | 878 |
[self goOnline]; |
| 879 | 879 |
|
| 880 |
|
|
| 881 |
|
|
| 880 | 882 |
// Fetch latest vCard from server so we can update nickname |
| 881 | 883 |
//[self.xmppvCardTempModule fetchvCardTempForJID:self.JID ignoreStorage:YES]; |
| 882 | 884 |
|
| 883 |
// [self.messageStorage.archiving retrieveMessageArchiveWithFields:nil withResultSet:nil]; |
|
| 885 |
//NSDate *lastInteraction = OTRProtocolManager.shared.lastInteractionDate; |
|
| 886 |
[self.databaseConnection asyncReadWithBlock:^(YapDatabaseReadTransaction * _Nonnull transaction) {
|
|
| 887 |
OTRXMPPAccount *account = [self.account refetchWithTransaction:transaction]; |
|
| 888 |
[self.messageStorage.archiving fetchHistoryWithArchiveJID:nil userJID:nil since:account.lastHistoryFetchDate]; |
|
| 889 |
}]; |
|
| 890 |
//[self.messageStorage.archiving fetchHistoryWithArchiveJID:nil userJID:nil since:lastInteraction]; |
|
| 891 |
|
|
| 892 |
//[self.messageStorage.archiving retrieveMessageArchiveWithFields:nil withResultSet:nil]; |
|
| 884 | 893 |
} |
| 885 | 894 |
|
| 886 | 895 |
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error |
Also available in: Unified diff