Commit Graph

5 Commits

Author SHA1 Message Date
Prakhar Pratyush
e15edc84c2 desktop_notification: Fix error when message deleted while narrowing.
Earlier:
When a user clicked the desktop notification, but before we finished
processing that click, the message deletion got processed.
It resulted in an error.

This commit fixes the bug by taking the user to the conversation
where the now-deleted message had been prior to deletion -
narrow to the message's near view.

Signed-off-by: Prakhar Pratyush <prakhar@zulip.com>
2025-11-04 11:03:36 -08:00
Anders Kaseorg
cd1ced82d6 eslint: Fix @typescript-eslint/prefer-optional-chain.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-11-01 07:24:57 -07:00
Aman Agrawal
97452ea4f8 hotkey: Fix wrong assumption of message_lists.current is defined.
Since we are checking `is_in_focus()` of recent and inbox view,
message_lists.current can be not defined here, also addition
a new view in Zulip will make this fail.
2025-10-10 09:57:23 -07:00
Evy Kassirer
38e7f11259 hotkey: Specify reactions toggle to message controls.
Sometimes this selector was catching a second
`emoji-message-control-button-container` from an emoji reaction,
which was only caught once we started using `util.the`. This
change avoids catching that irrelevant element.
2025-10-10 09:45:06 -07:00
Evy Kassirer
ce56be02bc hotkey: Convert module to typescript. 2025-10-06 11:01:01 -07:00