Fix crash

pull/260/head
nielsandriesse 5 years ago
parent 9ea2718d5b
commit f0d9df0e12

@ -114,8 +114,8 @@ final class ConversationTitleView : UIView {
guard let timestamp = notification.object as? NSNumber else { return } guard let timestamp = notification.object as? NSNumber else { return }
setStatusIfNeeded(to: .messageSent, forMessageWithTimestamp: timestamp) setStatusIfNeeded(to: .messageSent, forMessageWithTimestamp: timestamp)
handledMessageTimestamps.insert(timestamp) handledMessageTimestamps.insert(timestamp)
DispatchQueue.main.asyncAfter(deadline: .now() + 1) { DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
self.clearStatusIfNeededForMessageWithTimestamp(timestamp) self?.clearStatusIfNeededForMessageWithTimestamp(timestamp)
} }
} }

Loading…
Cancel
Save