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