Fix reply action in message context menu notif & file panels (#9895)
This commit is contained in:
parent
098ba1465a
commit
0c30b577e0
2 changed files with 28 additions and 4 deletions
|
@ -335,10 +335,11 @@ export class RoomViewStore extends EventEmitter {
|
|||
this.reset();
|
||||
break;
|
||||
case "reply_to_event":
|
||||
// If currently viewed room does not match the room in which we wish to reply then change rooms
|
||||
// this can happen when performing a search across all rooms. Persist the data from this event for
|
||||
// both room and search timeline rendering types, search will get auto-closed by RoomView at this time.
|
||||
if ([TimelineRenderingType.Room, TimelineRenderingType.Search].includes(payload.context)) {
|
||||
// Thread timeline view handles its own reply-to-state
|
||||
if (TimelineRenderingType.Thread !== payload.context) {
|
||||
// If currently viewed room does not match the room in which we wish to reply then change rooms this
|
||||
// can happen when performing a search across all rooms. Persist the data from this event for both
|
||||
// room and search timeline rendering types, search will get auto-closed by RoomView at this time.
|
||||
if (payload.event && payload.event.getRoomId() !== this.state.roomId) {
|
||||
this.dis.dispatch<ViewRoomPayload>({
|
||||
action: Action.ViewRoom,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue