You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-18 05:42:00 +03:00
remember to check initialSync for m.tag events
This commit is contained in:
@@ -1942,6 +1942,16 @@ function doInitialSync(client, historyLen, includeArchived) {
|
||||
room.addReceipt(receipts[j]);
|
||||
}
|
||||
|
||||
var privateUserData = data.rooms[i].private_user_data || [];
|
||||
for (j = 0; j < privateUserData.length; j++) {
|
||||
var event = _PojoToMatrixEventMapper(client)(privateUserData[j]);
|
||||
if (event.type === "m.tag") {
|
||||
room.addTags(event);
|
||||
}
|
||||
// XXX: unhandled private user data event - we should probably
|
||||
// put it somewhere useful once the API has settled
|
||||
}
|
||||
|
||||
// cache the name/summary/etc prior to storage since we don't
|
||||
// know how the store will serialise the Room.
|
||||
room.recalculate(client.credentials.userId);
|
||||
|
Reference in New Issue
Block a user