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

incorporate PR feedback

This commit is contained in:
Matthew Hodgson
2016-09-08 22:38:39 +01:00
parent 7dfc4a404c
commit f959e1a134
6 changed files with 36 additions and 34 deletions

View File

@@ -30,7 +30,7 @@ var MatrixEvent = require("./event").MatrixEvent;
*/
function EventTimeline(eventTimelineSet) {
this._eventTimelineSet = eventTimelineSet;
this._roomId = eventTimelineSet.roomId;
this._roomId = eventTimelineSet.room ? eventTimelineSet.room.roomId : null;
this._events = [];
this._baseIndex = 0;
this._startState = new RoomState(this._roomId);