1
0
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:
Matthew Hodgson
2015-11-03 16:18:12 +00:00
parent 70536d5676
commit 8016a70bc4

View File

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