mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Clean
This commit is contained in:
parent
6d7f32a1e5
commit
ff13f15dfc
2 changed files with 4 additions and 6 deletions
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue