mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 07:36:47 +00:00
Skip removeRecipientViewFromMrmData pipeline if there are no keys
This commit is contained in:
1 parent
ad17c6e40d
commit
0602149c52
1 file changed
+4
@@ -472,6 +472,10 @@ public class MessagesCache extends RedisClusterPubSubAdapter<String, String> imp
|
||||
void removeRecipientViewFromMrmData(final List<byte[]> sharedMrmKeys, final UUID accountUuid,
|
||||
final byte deviceId) {
|
||||
|
||||
if (sharedMrmKeys.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Timer.Sample sample = Timer.start();
|
||||
Flux.fromIterable(sharedMrmKeys)
|
||||
.collectMultimap(SlotHash::getSlot)
|
||||
|
||||
Reference in new issue
Block a user