mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
Replace 'in' with .hasOwnProperty
(imported from commit 209aef184f0a6117d1c14e755e7b916a866b8702)
This commit is contained in:
@@ -400,7 +400,7 @@ function add_messages(data) {
|
||||
|
||||
// If we received the initially selected message, select it on the client side,
|
||||
// but not if the user has already selected another one during load.
|
||||
if ((selected_zephyr_id === -1) && (initial_pointer in zephyr_dict)) {
|
||||
if ((selected_zephyr_id === -1) && (zephyr_dict.hasOwnProperty(initial_pointer))) {
|
||||
select_and_show_by_id(initial_pointer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user