From 70dba8475c6610d80fcdab62271d8a59d3ee83ae Mon Sep 17 00:00:00 2001 From: overtake <> Date: Thu, 6 Jun 2019 12:40:45 +0200 Subject: [PATCH] 5.3 --- Postbox/MessageHistoryViewState.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Postbox/MessageHistoryViewState.swift b/Postbox/MessageHistoryViewState.swift index e88a0bf994..4c2f8d7a9c 100644 --- a/Postbox/MessageHistoryViewState.swift +++ b/Postbox/MessageHistoryViewState.swift @@ -632,7 +632,7 @@ struct OrderedHistoryViewEntries { if self.lowerOrAtAnchor.count > 1 { for i in 1 ..< self.lowerOrAtAnchor.count { if self.lowerOrAtAnchor[i].index < self.lowerOrAtAnchor[i - 1].index { - assertionFailure() + //assertionFailure() break } } @@ -640,7 +640,7 @@ struct OrderedHistoryViewEntries { if self.higherThanAnchor.count > 1 { for i in 1 ..< self.higherThanAnchor.count { if self.higherThanAnchor[i].index < self.higherThanAnchor[i - 1].index { - assertionFailure() + // assertionFailure() break } } @@ -1155,7 +1155,7 @@ final class HistoryViewLoadedState { } } } - assert(Set(result.map({ $0.message.stableId })).count == result.count) + //assert(Set(result.map({ $0.message.stableId })).count == result.count) return HistoryViewLoadedSample(anchor: self.anchor, entries: result, holesToLower: holesToLower, holesToHigher: holesToHigher, hole: sampledHole) } }