Autofocus correct composer after sending reaction (#7950)
This commit is contained in:
parent
61cd463a3b
commit
c727942095
4 changed files with 39 additions and 23 deletions
|
@ -77,8 +77,7 @@ export enum Action {
|
|||
|
||||
/**
|
||||
* Focuses the user's cursor to the edit message composer or send message
|
||||
* composer based on the current edit state. No additional payload
|
||||
* information required.
|
||||
* composer based on the current edit state. Should be used with a FocusComposerPayload.
|
||||
*/
|
||||
FocusAComposer = "focus_a_composer",
|
||||
|
||||
|
|
|
@ -19,7 +19,10 @@ import { Action } from "../actions";
|
|||
import { TimelineRenderingType } from "../../contexts/RoomContext";
|
||||
|
||||
export interface FocusComposerPayload extends ActionPayload {
|
||||
action: Action.FocusEditMessageComposer | Action.FocusSendMessageComposer | "reply_to_event";
|
||||
action: Action.FocusAComposer
|
||||
| Action.FocusEditMessageComposer
|
||||
| Action.FocusSendMessageComposer
|
||||
| "reply_to_event";
|
||||
|
||||
context?: TimelineRenderingType; // defaults to Room type for backwards compatibility
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue