Fix message updating race condition
This commit is contained in:
parent
adc11e8d7e
commit
4f9d77017a
|
@ -11,7 +11,7 @@
|
|||
private override init() { }
|
||||
|
||||
@objc public static func invalidate(_ message: TSMessage, with transaction: YapDatabaseReadWriteTransaction) {
|
||||
guard let id = message.uniqueId, !isInvalidated(message) else { return }
|
||||
guard let id = message.uniqueId else { return }
|
||||
invalidatedMessages.insert(id)
|
||||
message.touch(with: transaction)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue