You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-01 13:11:10 +03:00
Prefer RoomStateEvent.Update where possible as it fires far less (#7878)
This commit is contained in:
committed by
GitHub
parent
36ae0ea49d
commit
c257bc3f7a
@@ -317,7 +317,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
||||
|
||||
private onRoomStateEvents = (ev: MatrixEvent): void => {
|
||||
const serverNoticeList = RoomListStore.instance.orderedLists[DefaultTagID.ServerNotice];
|
||||
if (serverNoticeList && serverNoticeList.some(r => r.roomId === ev.getRoomId())) {
|
||||
if (serverNoticeList?.some(r => r.roomId === ev.getRoomId())) {
|
||||
this.updateServerNoticeEvents();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user