Skip to content

Commit

Permalink
Focus chat input on all code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
acquitelol committed Apr 5, 2023
1 parent 9c6d814 commit d8b1f00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,16 @@ const BetterChatGestures: Plugin = {
MessageID,
MessageContent
);

ChatInputRef.focus();
} else {
ReplyManager.createPendingReply({
channel,
message,
shouldMention: true
})

ChatInputRef.focus();
}

return;
Expand All @@ -130,6 +132,8 @@ const BetterChatGestures: Plugin = {
})
}

ChatInputRef.focus();

this.currentTapIndex = 0;
this.doubleTapState({
state: "COMPLETE",
Expand Down

0 comments on commit d8b1f00

Please sign in to comment.