You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Fix null-guarding regression around reply_to_event dispatch (#8039)
This commit is contained in:
committed by
GitHub
parent
5262d5c315
commit
4b0df21b0a
@@ -844,7 +844,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
||||
case 'reply_to_event':
|
||||
if (!this.unmounted &&
|
||||
this.state.searchResults &&
|
||||
payload.event.getRoomId() === this.state.roomId &&
|
||||
payload.event?.getRoomId() === this.state.roomId &&
|
||||
payload.context === TimelineRenderingType.Search
|
||||
) {
|
||||
this.onCancelSearchClick();
|
||||
|
||||
Reference in New Issue
Block a user