mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:06:50 +00:00
Read from the messages subspace when getting earliest message timestamps
This commit is contained in:
1 parent
5318ef4562
commit
78ec09cc25
1 file changed
+1
-1
+1
-1
@@ -542,7 +542,7 @@ public class FoundationDbMessageStore {
|
||||
|
||||
return getDistinctDatabasesForAci(aci)
|
||||
.flatMap(database -> Mono.fromFuture(() -> database.readAsync(transaction ->
|
||||
transaction.getRange(getDeviceSubspace(aci, deviceId).range(), 1).asList(),
|
||||
transaction.getRange(getDeviceQueueSubspace(aci, deviceId).range(), 1).asList(),
|
||||
FaultTolerantDatabase.Context.GET_EARLIEST_TIMESTAMP))
|
||||
.mapNotNull(keyValues -> {
|
||||
if (keyValues.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user