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

m.heros => m.heroes

This commit is contained in:
Bruno Windels
2018-07-25 17:52:52 +02:00
parent 148876f597
commit fbdce27db2
3 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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 }}

View File

@@ -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,