Skip to content

Commit

Permalink
filter more
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Oct 11, 2024
1 parent 5385def commit 2910905
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/meteor/app/e2e/server/functions/resetRoomKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export async function resetRoomKey(roomId: string, userId: string, newRoomKey: s
const updateOps: AnyBulkWriteOperation<ISubscription>[] = [];
const e2eQueue: IRoom['usersWaitingForE2EKeys'] = [];

for await (const sub of Subscriptions.find({ rid: roomId })) {
for await (const sub of Subscriptions.find({
rid: roomId,
$or: [{ E2EKey: { $exists: true } }, { E2ESuggestedKey: { $exists: true } }],
})) {
// This replicates the oldRoomKeys array modifications allowing us to have the changes locally without finding them again
// which allows for quicker notifying
const keys = replicateMongoSlice(room.e2eKeyId, sub);
Expand Down

0 comments on commit 2910905

Please sign in to comment.