From 1934b5d58997b77a23fc32cf7d308d3894a4be4a Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 4 Jan 2019 13:35:50 -0500 Subject: [PATCH] Tweak unseen database view accessor. --- SignalServiceKit/src/Storage/TSDatabaseView.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Storage/TSDatabaseView.m b/SignalServiceKit/src/Storage/TSDatabaseView.m index ddc134ce9..0034af82f 100644 --- a/SignalServiceKit/src/Storage/TSDatabaseView.m +++ b/SignalServiceKit/src/Storage/TSDatabaseView.m @@ -1,5 +1,5 @@ // -// Copyright (c) 2018 Open Whisper Systems. All rights reserved. +// Copyright (c) 2019 Open Whisper Systems. All rights reserved. // #import "TSDatabaseView.h" @@ -473,8 +473,10 @@ NSString *const TSLazyRestoreAttachmentsGroup = @"TSLazyRestoreAttachmentsGroup" { OWSAssertDebug(transaction); - id result = [transaction ext:TSUnseenDatabaseViewExtensionName]; + id _Nullable result = [transaction ext:TSUnseenDatabaseViewExtensionName]; + OWSAssertDebug(result); + // TODO: I believe we can now safely remove this? if (!result) { result = [transaction ext:TSUnreadDatabaseViewExtensionName]; OWSAssertDebug(result);