This commit is contained in:
Mikunj 2019-12-10 15:59:20 +11:00
parent 770d8b2f3d
commit 57db0bd211
4 changed files with 7 additions and 7 deletions

View file

@ -980,7 +980,7 @@ typedef enum : NSUInteger {
[self restoreSession];
}];
[bannerView setOnDismiss:^{
[thread removeAllRessionRestoreDevicesWithTransaction:nil];
[thread removeAllSessionRestoreDevicesWithTransaction:nil];
}];
}
} else {
@ -1000,11 +1000,11 @@ typedef enum : NSUInteger {
// rebuild the indicator view every time.
[self.bannerView removeFromSuperview];
self.bannerView = nil;
if (self.userHasScrolled) {
return;
}
NSArray<NSString *> *noLongerVerifiedRecipientIds = [self noLongerVerifiedRecipientIds];
if (noLongerVerifiedRecipientIds.count > 0) {
@ -1182,7 +1182,7 @@ typedef enum : NSUInteger {
[[[TSInfoMessage alloc] initWithTimestamp:NSDate.ows_millisecondTimeStamp inThread:thread messageType:TSInfoMessageTypeLokiSessionResetInProgress] save];
thread.sessionResetState = TSContactThreadSessionResetStateRequestReceived;
[thread save];
[thread removeAllRessionRestoreDevicesWithTransaction:nil];
[thread removeAllSessionRestoreDevicesWithTransaction:nil];
}
}

View file

@ -52,7 +52,7 @@ extern NSString *const TSContactThreadPrefix;
- (void)addSessionRestoreDevice:(NSString *)hexEncodedPublicKey transaction:(YapDatabaseReadWriteTransaction *_Nullable)transaction;
- (void)removeAllRessionRestoreDevicesWithTransaction:(YapDatabaseReadWriteTransaction *_Nullable)transaction;
- (void)removeAllSessionRestoreDevicesWithTransaction:(YapDatabaseReadWriteTransaction *_Nullable)transaction;
@end

View file

@ -118,7 +118,7 @@ NSString *const TSContactThreadPrefix = @"c";
[self setSessionRestoreDevices:[set allObjects] transaction:transaction];
}
- (void)removeAllRessionRestoreDevicesWithTransaction:(YapDatabaseReadWriteTransaction *_Nullable)transaction
- (void)removeAllSessionRestoreDevicesWithTransaction:(YapDatabaseReadWriteTransaction *_Nullable)transaction
{
[self setSessionRestoreDevices:@[] transaction:transaction];
}

View file

@ -1335,7 +1335,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
[message.thread saveFriendRequestStatus:LKThreadFriendRequestStatusRequestSent withTransaction:transaction];
[message.thread removeOldOutgoingFriendRequestMessagesIfNeededWithTransaction:transaction];
if ([message.thread isKindOfClass:[TSContactThread class]]) {
[((TSContactThread *) message.thread) removeAllRessionRestoreDevicesWithTransaction:transaction];
[((TSContactThread *) message.thread) removeAllSessionRestoreDevicesWithTransaction:transaction];
}
// Update the message
[message saveFriendRequestStatus:LKMessageFriendRequestStatusPending withTransaction:transaction];