Skip to content

Commit

Permalink
Disable Ctrl+Up shortcut in readonly chats
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodh committed Dec 8, 2024
1 parent ac68bbf commit 206e641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export function useDraft(
| KeybindAction.Composer_SelectReplyToUp
| KeybindAction.Composer_SelectReplyToDown
) => {
if (chatId == undefined) {
if (chatId == undefined || !canSend) {
return
}
const quoteMessage = (messageId: number) => {
Expand Down

0 comments on commit 206e641

Please sign in to comment.