From 9cf0acaf381b8fced3d9a4bfb751388f022004e0 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Wed, 11 Nov 2020 18:55:12 +0400 Subject: [PATCH] Backport the groupInfo attempted fix --- submodules/Postbox/Sources/MessageHistoryTable.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/Postbox/Sources/MessageHistoryTable.swift b/submodules/Postbox/Sources/MessageHistoryTable.swift index 98bc01ebc1..d34be5344c 100644 --- a/submodules/Postbox/Sources/MessageHistoryTable.swift +++ b/submodules/Postbox/Sources/MessageHistoryTable.swift @@ -20,11 +20,11 @@ private enum AdjacentEntryGroupInfo { private func getAdjacentEntryGroupInfo(_ entry: IntermediateMessageHistoryEntry?, key: Int64) -> (IntermediateMessageHistoryEntry?, AdjacentEntryGroupInfo) { if let entry = entry { - if let groupingKey = entry.message.groupingKey { + if let groupingKey = entry.message.groupingKey, let groupInfo = entry.message.groupInfo { if groupingKey == key { - return (entry, .sameGroup(entry.message.groupInfo!)) + return (entry, .sameGroup(groupInfo)) } else { - return (entry, .otherGroup(entry.message.groupInfo!)) + return (entry, .otherGroup(groupInfo)) } } else { return (entry, .none)