From 3e3a32cf10356874b9685eb38b6620843981aaa3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 9 Dec 2020 11:56:57 -0700 Subject: [PATCH] Only show confetti if the current room is receiving an appropriate event --- src/components/structures/RoomView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index b64d2e876b..0ee847fbc9 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -801,6 +801,7 @@ export default class RoomView extends React.Component { private handleEffects = (ev) => { if (!this.state.room || !this.state.matrixClientIsReady) return; // not ready at all + if (ev.getRoomId() !== this.state.room.roomId) return; // not for us const notifState = RoomNotificationStateStore.instance.getRoomState(this.state.room); if (!notifState.isUnread) return;