This commit is contained in:
nielsandriesse 2020-05-26 14:20:07 +10:00
parent 6d7f32a1e5
commit ff13f15dfc
2 changed files with 4 additions and 6 deletions

View file

@ -1056,7 +1056,7 @@ typedef enum : NSUInteger {
BOOL shouldDetachBanner = !isContactThread;
if (isContactThread) {
TSContactThread *thread = (TSContactThread *)self.thread;
if (thread.sessionRestoreDevices.count > 0) {
// if (thread.sessionRestoreDevices.count > 0) {
if (self.restoreSessionBannerView == nil) {
LKSessionRestorationView *bannerView = [[LKSessionRestorationView alloc] initWithThread:thread];
[self.view addSubview:bannerView];
@ -1072,9 +1072,9 @@ typedef enum : NSUInteger {
[thread removeAllSessionRestoreDevicesWithTransaction:nil];
}];
}
} else {
shouldDetachBanner = true;
}
// } else {
// shouldDetachBanner = true;
// }
}
if (shouldDetachBanner && self.restoreSessionBannerView != nil) {
[self.restoreSessionBannerView removeFromSuperview];

View file

@ -580,8 +580,6 @@ NSError *EnsureDecryptError(NSError *_Nullable error, NSString *fallbackErrorDes
return;
}
// FIXME: This can be hit if someone sends an invalid pre key. We should probably try to recover with a session reset.
OWSFailDebug(@"Could not decrypt UD message: %@.", underlyingError);
failureBlock(underlyingError);
return;