1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Emit an event when a local-echo is turned into a proper event

We need to trigger an update of the timeline when this happens, so raise an
event for it.
This commit is contained in:
Richard van der Hoff
2016-03-08 15:00:19 +00:00
parent 51380f8116
commit 78eded3bbd
3 changed files with 60 additions and 3 deletions

View File

@@ -86,7 +86,9 @@ SyncApi.prototype.createRoom = function(roomId) {
});
reEmit(client, room, ["Room.name", "Room.timeline", "Room.redaction",
"Room.receipt", "Room.tags",
"Room.timelineReset"]);
"Room.timelineReset",
"Room.localEchoUpdated",
]);
this._registerStateListeners(room);
return room;
};