ui_init: Fix misconverted conditional.

f630272b4c incorrectly considered the
case that message_lists.current was itself undefined.
This commit is contained in:
Tim Abbott 2024-02-24 14:22:29 -08:00
parent f0cf4dad04
commit e6109ba192
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ export function initialize_kitchen_sink_stuff() {
});
$(document).on("message_selected.zulip", (event) => {
if (message_lists.current !== undefined && message_lists.current !== event.msg_list) {
if (message_lists.current === undefined || message_lists.current !== event.msg_list) {
return;
}