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

no need to filter here anymore when listening for timeline, also remove obsolete docs

This commit is contained in:
Bruno Windels
2019-11-22 17:32:37 +01:00
parent 51898cffe8
commit 6952db6762

View File

@@ -930,11 +930,8 @@ Crypto.prototype.registerEventHandlers = function(eventEmitter) {
crypto._onToDeviceEvent(event);
});
// only sync timeline events, not events when backpaginating, loading, ...
eventEmitter.on("Room.timeline", function(event) {
if (event.getRoomId()) {
crypto._onTimelineEvent(event);
}
crypto._onTimelineEvent(event);
});
eventEmitter.on("Event.decrypted", function(event) {