diff --git a/src/models/room.js b/src/models/room.js index 94abbf689..fd4627768 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -379,7 +379,7 @@ Room.prototype.setUnreadNotificationCount = function(type, count) { }; Room.prototype.setSummary = function(summary) { - const heros = summary["m.heros"]; + const heros = summary["m.heroes"]; const count = summary["m.joined_member_count"]; if (Number.isInteger(count)) { this.currentState.setJoinedMemberCount(count); diff --git a/src/sync-accumulator.js b/src/sync-accumulator.js index add58adb1..3ff71af77 100644 --- a/src/sync-accumulator.js +++ b/src/sync-accumulator.js @@ -63,7 +63,7 @@ class SyncAccumulator { // { event: $event, token: null|token }, // ... // ], - // _summary: { m.heros: [ $user_id ], m.joined_member_count: $count } + // _summary: { m.heroes: [ $user_id ], m.joined_member_count: $count } // _accountData: { $event_type: json }, // _unreadNotifications: { ... unread_notifications JSON ... }, // _readReceipts: { $user_id: { data: $json, eventId: $event_id }} diff --git a/src/sync.js b/src/sync.js index 8e348b6f3..c3c8970e8 100644 --- a/src/sync.js +++ b/src/sync.js @@ -823,7 +823,7 @@ SyncApi.prototype._processSyncResponse = async function( // state: { events: [] }, // timeline: { events: [], prev_batch: $token, limited: true }, // ephemeral: { events: [] }, - // summary: { m.heros: [ $userId ], m.joined_member_count: $count } + // summary: { m.heroes: [ $userId ], m.joined_member_count: $count } // account_data: { events: [] }, // unread_notifications: { // highlight_count: 0,