Undo accidental commit

pull/198/head
nielsandriesse 5 years ago
parent 9e8b50ff49
commit 7c72667ee6

@ -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];

@ -81,8 +81,8 @@
SUBQUERY ( SUBQUERY (
$extensionItem.attachments, $extensionItem.attachments,
$attachment, $attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.data" ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.data"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
).@count >= 1 ).@count >= 1
).@count == 1 ).@count == 1
</string> </string>

Loading…
Cancel
Save