1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

add invited count, only copy summary fields if present in summary

only copy any member from summary as
they are only in the response when they change.
Also accumulate them in the sync accumulator
This commit is contained in:
Bruno Windels
2018-07-25 18:02:36 +02:00
parent fbdce27db2
commit a5b3869e9f
4 changed files with 59 additions and 8 deletions

View File

@@ -823,7 +823,11 @@ SyncApi.prototype._processSyncResponse = async function(
// state: { events: [] },
// timeline: { events: [], prev_batch: $token, limited: true },
// ephemeral: { events: [] },
// summary: { m.heroes: [ $userId ], m.joined_member_count: $count }
// summary: {
// m.heroes: [ $user_id ],
// m.joined_member_count: $count,
// m.invited_member_count: $count
// },
// account_data: { events: [] },
// unread_notifications: {
// highlight_count: 0,