mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 23:11:12 +02:00
Fix destructuring when threads has no server support (#7976)
This commit is contained in:
parent
86329012f3
commit
84bd136657
@ -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…
x
Reference in New Issue
Block a user