Skip to content

Commit b2d7b12

Browse files
committed
Add changelog entry
1 parent 55f259d commit b2d7b12

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## [Unreleased][unreleased]
44

5+
### Fixed
6+
- fix: remove the option to select info messages with Ctrl + Up/Down #5337
7+
58
<a id="2_15_0"></a>
69

710
## [2.15.0] - 2025-10-02

packages/frontend/src/hooks/chat/useDraft.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ export function useDraft(
252252
)
253253

254254
const { jumpToMessage } = useMessage()
255+
256+
/**
257+
* Support the Ctrl/Cmd+Up/Down shortcuts to select a message
258+
* to reply to and set the quote in the draft accordingly
259+
*/
255260
const onSelectReplyToShortcut = async (
256261
upOrDown:
257262
| KeybindAction.Composer_SelectReplyToUp
@@ -291,7 +296,6 @@ export function useDraft(
291296
messageCache[id]?.chatId === chatId &&
292297
messageCache[id]?.isInfo === false
293298
)
294-
console.log('messageIds', messageIds)
295299
const currQuote = draftRef.current.quote
296300
if (!currQuote) {
297301
if (upOrDown === KeybindAction.Composer_SelectReplyToUp) {
@@ -312,7 +316,7 @@ export function useDraft(
312316
const fullIndex = fullMsgIdList.findIndex(m => m === currQuote.messageId)
313317
if (fullIndex !== -1) {
314318
// message is in the full list, just not in the cache (yet)
315-
// -> jump to it, it will be loaded then
319+
// -> jump to it, it will be loaded then (and the surrounding messages)
316320
quoteMessage(currQuote.messageId, true)
317321
return
318322
} else {

0 commit comments

Comments
 (0)