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