From 5ec0fce2a439d858c0e6bd4a412b4ad12fc2fc71 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 Jan 2016 17:19:26 +0000 Subject: [PATCH] style --- lib/models/room.js | 4 ++-- lib/sync.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/models/room.js b/lib/models/room.js index 42948459b..5b0a25d5b 100644 --- a/lib/models/room.js +++ b/lib/models/room.js @@ -132,7 +132,7 @@ utils.inherits(Room, EventEmitter); Room.prototype.getUnreadNotificationCount = function(type) { type = type || 'total'; return this._notificationCounts[type]; -} +}; /** * Set one of the notification counst for this room @@ -141,7 +141,7 @@ Room.prototype.getUnreadNotificationCount = function(type) { */ Room.prototype.setUnreadNotificationCount = function(type, count) { this._notificationCounts[type] = count; -} +}; /** * Get the avatar URL for a room if one was set. diff --git a/lib/sync.js b/lib/sync.js index 52188899f..0aa842f94 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -472,10 +472,10 @@ SyncApi.prototype._sync = function(syncOptions, attempt) { room.unread_notifications = joinObj.unread_notifications || {}; if (joinObj.unread_notifications) { room.setUnreadNotificationCount( - 'total', joinObj.unread_notifications['notification_count'] + 'total', joinObj.unread_notifications.notification_count ); room.setUnreadNotificationCount( - 'highlight', joinObj.unread_notifications['highlight_count'] + 'highlight', joinObj.unread_notifications.highlight_count ); }