You've already forked matrix-js-sdk
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:
@@ -379,7 +379,7 @@ Room.prototype.setUnreadNotificationCount = function(type, count) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Room.prototype.setSummary = function(summary) {
|
Room.prototype.setSummary = function(summary) {
|
||||||
const heros = summary["m.heros"];
|
const heros = summary["m.heroes"];
|
||||||
const count = summary["m.joined_member_count"];
|
const count = summary["m.joined_member_count"];
|
||||||
if (Number.isInteger(count)) {
|
if (Number.isInteger(count)) {
|
||||||
this.currentState.setJoinedMemberCount(count);
|
this.currentState.setJoinedMemberCount(count);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class SyncAccumulator {
|
|||||||
// { event: $event, token: null|token },
|
// { 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 },
|
// _accountData: { $event_type: json },
|
||||||
// _unreadNotifications: { ... unread_notifications JSON ... },
|
// _unreadNotifications: { ... unread_notifications JSON ... },
|
||||||
// _readReceipts: { $user_id: { data: $json, eventId: $event_id }}
|
// _readReceipts: { $user_id: { data: $json, eventId: $event_id }}
|
||||||
|
|||||||
@@ -823,7 +823,7 @@ SyncApi.prototype._processSyncResponse = async function(
|
|||||||
// state: { events: [] },
|
// state: { events: [] },
|
||||||
// timeline: { events: [], prev_batch: $token, limited: true },
|
// timeline: { events: [], prev_batch: $token, limited: true },
|
||||||
// ephemeral: { events: [] },
|
// ephemeral: { events: [] },
|
||||||
// summary: { m.heros: [ $userId ], m.joined_member_count: $count }
|
// summary: { m.heroes: [ $userId ], m.joined_member_count: $count }
|
||||||
// account_data: { events: [] },
|
// account_data: { events: [] },
|
||||||
// unread_notifications: {
|
// unread_notifications: {
|
||||||
// highlight_count: 0,
|
// highlight_count: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user