Fix destructuring when threads has no server support (#7976)
This commit is contained in:
parent
86329012f3
commit
84bd136657
1 changed files with 4 additions and 2 deletions
|
@ -186,8 +186,10 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
|||
}, async () => {
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
if (!thread.initialEventsFetched) {
|
||||
const { nextBatch } = await thread.fetchInitialEvents();
|
||||
this.nextBatch = nextBatch;
|
||||
const response = await thread.fetchInitialEvents();
|
||||
if (response?.nextBatch) {
|
||||
this.nextBatch = response.nextBatch;
|
||||
}
|
||||
}
|
||||
|
||||
this.timelinePanel.current?.refreshTimeline();
|
||||
|
|
Loading…
Reference in a new issue