You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.log(`[refreshLiveTimeline] for room ${this.roomId} at mostRecentEventInTimeline=${mostRecentEventInTimeline.getId()} forwardPaginationToken+${forwardPaginationToken}`)
938
951
939
952
// Empty out all of `this.timelineSets` but still keeps the same
940
953
// `timelineSet` references around so the React code updates properly
@@ -944,81 +957,37 @@ export class Room extends TypedEventEmitter<EmittedEvents, RoomEventHandlerMap>
944
957
// call `/context` and create a new timeline instead of returning the
// Get a reference to the emptied out `timelineSet`
950
962
//
951
-
// TODO: Do we want to use `this.getLiveTimeline().getTimelineSet()` instead?
952
-
// I think it's the same thing but what's more right?
963
+
// TODO: Do we want to use `this.getLiveTimeline().getTimelineSet()`
964
+
// instead? I think it's the same thing but what's more right?
953
965
consttimelineSet=this.getUnfilteredTimelineSet();
954
-
955
-
console.log(`refreshLiveTimeline: after resetLiveTimeline timelineSets=${this.getTimelineSets().length} getUnfilteredTimelineSet=`,timelineSet.getTimelines().length,timelineSet.getTimelines().map((timeline)=>{
956
-
returntimeline.getEvents().length;
957
-
}));
958
966
959
967
// Use `client.getEventTimeline(...)` to construct a new timeline from a
960
968
// `/context` response state and events for the most recent event before
961
-
// we reset everything. The `timelineSet` needs to be empty in order for
962
-
// this function to call `/context`
969
+
// we reset everything. The `timelineSet` we pass in needs to be empty
970
+
// in order for this function to call `/context` and generate a new
0 commit comments