style
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
+2
-2
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user