Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
No longer need check since it should always return a timeline
  • Loading branch information
MadLittleMods committed Jul 13, 2022
commit 78f80194f69c9eba66b3238e8fd8330c3e4f66f2
4 changes: 0 additions & 4 deletions src/models/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -981,10 +981,6 @@ export class Room extends TypedEventEmitter<EmittedEvents, RoomEventHandlerMap>
newTimeline = await this.client.getEventTimeline(timelineSet, mostRecentEventInTimeline.getId());
}

if (!newTimeline) {
throw new Error(`[refreshLiveTimeline for ${this.roomId}] No new timeline created`);
}

// If a racing `/sync` beat us to creating a new timeline, use that
// instead because it's the latest in the room and any new messages in
// the scrollback will include the history.
Expand Down