From bab2f23db3b8547f87df5f7fb47d7e979dee47ba Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 18 Aug 2016 15:18:02 +0100 Subject: [PATCH] Oops, missed a constant --- src/RoomNotifs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RoomNotifs.js b/src/RoomNotifs.js index 563491b695..f545275641 100644 --- a/src/RoomNotifs.js +++ b/src/RoomNotifs.js @@ -52,7 +52,7 @@ export function getRoomNotifsState(roomId) { } export function setRoomNotifsState(roomId, newState) { - if (newState == 'mute') { + if (newState == MUTE) { return setRoomNotifsStateMuted(roomId); } else { return setRoomNotifsStateUnmuted(roomId, newState);