1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

fix tests

This commit is contained in:
Matthew Hodgson
2016-09-09 16:34:02 +01:00
parent d480b6cf3e
commit a9d3ae4ef8

View File

@@ -74,7 +74,9 @@ function SyncApi(client, opts) {
this._connectionReturnedDefer = null;
this._notifEvents = []; // accumulator of sync events in the current sync response
reEmit(client, client.getNotifTimelineSet(), ["Room.timeline"]);
if (client.getNotifTimelineSet()) {
reEmit(client, client.getNotifTimelineSet(), ["Room.timeline"]);
}
}
/**