mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #2945 from matrix-org/jryans/guard-room
Check for `room` in all `Room.timeline*` handlers
This commit is contained in:
commit
2d25cab693
@ -117,6 +117,7 @@ export default class RoomBreadcrumbs extends React.Component {
|
||||
};
|
||||
|
||||
onRoomTimeline = (event, room) => {
|
||||
if (!room) return; // Can be null for the notification timeline, etc.
|
||||
if (this.state.rooms.map(r => r.room.roomId).includes(room.roomId)) {
|
||||
this._calculateRoomBadges(room);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user