Fix message duplication bug

pull/318/head
Niels Andriesse 4 years ago
parent a3b1a81ab3
commit ec1d79ca63

@ -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
}

Loading…
Cancel
Save