mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +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 () => {
|
}, async () => {
|
||||||
thread.emit(ThreadEvent.ViewThread);
|
thread.emit(ThreadEvent.ViewThread);
|
||||||
if (!thread.initialEventsFetched) {
|
if (!thread.initialEventsFetched) {
|
||||||
const { nextBatch } = await thread.fetchInitialEvents();
|
const response = await thread.fetchInitialEvents();
|
||||||
this.nextBatch = nextBatch;
|
if (response?.nextBatch) {
|
||||||
|
this.nextBatch = response.nextBatch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timelinePanel.current?.refreshTimeline();
|
this.timelinePanel.current?.refreshTimeline();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user