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

add unstableClientRelationReplacements in js-sdk

This commit is contained in:
Bruno Windels
2019-05-14 15:33:49 +01:00
parent 455f52f1f5
commit 852c88c341
3 changed files with 14 additions and 1 deletions

View File

@@ -119,12 +119,14 @@ SyncApi.prototype.createRoom = function(roomId) {
const {
timelineSupport,
unstableClientRelationAggregation,
unstableClientRelationReplacements,
} = client;
const room = new Room(roomId, client, client.getUserId(), {
lazyLoadMembers: this.opts.lazyLoadMembers,
pendingEventOrdering: this.opts.pendingEventOrdering,
timelineSupport,
unstableClientRelationAggregation,
unstableClientRelationReplacements,
});
client.reEmitter.reEmit(room, ["Room.name", "Room.timeline", "Room.redaction",
"Room.receipt", "Room.tags",