recent_topics_data: Simplify .entries() loop to .values().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-06-29 15:22:26 -07:00 committed by Anders Kaseorg
parent 8e63c0e42c
commit a07bdb3fdb
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export function reify_message_id_if_available(opts) {
// if a new message arrives in the topic from another user,
// since it replaces the last_msg_id of the topic which
// we were trying to reify.
for (const [, value] of topics.entries()) {
for (const value of topics.values()) {
if (value.last_msg_id === opts.old_id) {
value.last_msg_id = opts.new_id;
return true;