You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-04 19:42:11 +03:00
Fix PR comments: typos and redundant line
This commit is contained in:
@@ -124,7 +124,7 @@ function Room(roomId, opts) {
|
|||||||
utils.inherits(Room, EventEmitter);
|
utils.inherits(Room, EventEmitter);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get one of the notification counst for this room
|
* Get one of the notification counts for this room
|
||||||
* @param {String} type The type of notification count to get. default: 'total'
|
* @param {String} type The type of notification count to get. default: 'total'
|
||||||
* @return {Number} The notification count, or undefined if there is no count
|
* @return {Number} The notification count, or undefined if there is no count
|
||||||
* for this type.
|
* for this type.
|
||||||
@@ -135,7 +135,7 @@ Room.prototype.getUnreadNotificationCount = function(type) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set one of the notification counst for this room
|
* Set one of the notification counts for this room
|
||||||
* @param {String} type The type of notification count to set.
|
* @param {String} type The type of notification count to set.
|
||||||
* @param {Number} type The new count
|
* @param {Number} type The new count
|
||||||
*/
|
*/
|
||||||
|
@@ -469,7 +469,6 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
|
|||||||
var accountDataEvents = self._mapSyncEventsFormat(joinObj.account_data);
|
var accountDataEvents = self._mapSyncEventsFormat(joinObj.account_data);
|
||||||
|
|
||||||
// we do this first so it's correct when any of the events fire
|
// we do this first so it's correct when any of the events fire
|
||||||
room.unread_notifications = joinObj.unread_notifications || {};
|
|
||||||
if (joinObj.unread_notifications) {
|
if (joinObj.unread_notifications) {
|
||||||
room.setUnreadNotificationCount(
|
room.setUnreadNotificationCount(
|
||||||
'total', joinObj.unread_notifications.notification_count
|
'total', joinObj.unread_notifications.notification_count
|
||||||
|
Reference in New Issue
Block a user