Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into joriks/room-list-auto-expand-on-search
commit
096cd482f1
|
@ -55,11 +55,6 @@ export class ListNotificationState extends NotificationState {
|
||||||
for (const newRoom of diff.added) {
|
for (const newRoom of diff.added) {
|
||||||
const state = this.getRoomFn(newRoom);
|
const state = this.getRoomFn(newRoom);
|
||||||
state.on(NOTIFICATION_STATE_UPDATE, this.onRoomNotificationStateUpdate);
|
state.on(NOTIFICATION_STATE_UPDATE, this.onRoomNotificationStateUpdate);
|
||||||
if (this.states[newRoom.roomId]) {
|
|
||||||
// "Should never happen" disclaimer.
|
|
||||||
console.warn("Overwriting notification state for room:", newRoom.roomId);
|
|
||||||
this.states[newRoom.roomId].destroy();
|
|
||||||
}
|
|
||||||
this.states[newRoom.roomId] = state;
|
this.states[newRoom.roomId] = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue