1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Appease the linter

This commit is contained in:
Travis Ralston
2019-04-09 09:05:20 -06:00
parent 9dc344999e
commit f72ae490a8

View File

@@ -1106,7 +1106,8 @@ SyncApi.prototype._processSyncResponse = async function(
// server's for this case, and therefore will assume that our non-zero
// count is accurate.
const encrypted = client.isRoomEncrypted(room.roomId);
if (!encrypted || (encrypted && room.getUnreadNotificationCount('highlight') <= 0)) {
if (!encrypted
|| (encrypted && room.getUnreadNotificationCount('highlight') <= 0)) {
room.setUnreadNotificationCount(
'highlight', joinObj.unread_notifications.highlight_count,
);