From d84ecbe97c884e69d3e177ebe10b8e74a4916b70 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 13 Aug 2018 13:53:38 +0100 Subject: [PATCH] s/m.server_notices/m.server_notice/ --- src/components/structures/LoggedInView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } },