mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #5482 from matrix-org/travis/fix-confetti
Only show confetti if the current room is receiving an appropriate event
This commit is contained in:
commit
560a8412d0
1 changed files with 1 additions and 0 deletions
|
@ -801,6 +801,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
private handleEffects = (ev) => {
|
private handleEffects = (ev) => {
|
||||||
if (!this.state.room || !this.state.matrixClientIsReady) return; // not ready at all
|
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);
|
const notifState = RoomNotificationStateStore.instance.getRoomState(this.state.room);
|
||||||
if (!notifState.isUnread) return;
|
if (!notifState.isUnread) return;
|
||||||
|
|
Loading…
Reference in a new issue