diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index c23dbaf444..5b617feb68 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -178,7 +178,7 @@ const LoggedInView = React.createClass({ onRoomStateEvents: function(ev, state) { const roomLists = RoomListStore.getRoomLists(); - if (roomLists['m.server_notices'] && roomLists['m.server_notices'].includes(ev.getRoomId())) { + if (roomLists['m.server_notice'] && roomLists['m.server_notice'].some(r => r.roomId === ev.getRoomId())) { this._updateServerNoticeEvents(); } },