Fix message duplication bug

This commit is contained in:
Niels Andriesse 2020-12-04 11:05:19 +11:00
parent a3b1a81ab3
commit ec1d79ca63
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ extension Storage {
var result: [UInt64] = []
let transaction = transaction as! YapDatabaseReadWriteTransaction
transaction.enumerateRows(inCollection: Storage.receivedMessageTimestampsCollection) { _, object, _, _ in
guard let timestamp = object as? UInt64 else { return }
result.append(timestamp)
guard let timestamps = object as? [UInt64] else { return }
result = timestamps
}
return result
}