hotkey: Fix argument type for narrow filter.

This commit fixes the operand argument type passed in for showing
message list.
This commit is contained in:
Pratik Chanda
2025-08-18 20:16:00 +05:30
committed by Aman Agrawal
parent bcdc2bd491
commit f9dc13014f

View File

@@ -1450,7 +1450,7 @@ export function process_hotkey(e, hotkey) {
message_view.show( message_view.show(
[ [
{operator: "dm", operand: msg.reply_to}, {operator: "dm", operand: msg.reply_to},
{operator: "near", operand: msg.id}, {operator: "near", operand: String(msg.id)},
], ],
{trigger: "hotkey"}, {trigger: "hotkey"},
); );
@@ -1463,7 +1463,7 @@ export function process_hotkey(e, hotkey) {
operand: msg.stream_id.toString(), operand: msg.stream_id.toString(),
}, },
{operator: "topic", operand: msg.topic}, {operator: "topic", operand: msg.topic},
{operator: "near", operand: msg.id}, {operator: "near", operand: String(msg.id)},
], ],
{trigger: "hotkey"}, {trigger: "hotkey"},
); );