mirror of https://github.com/zulip/zulip.git
recent_topics_data: Simplify .entries() loop to .values().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
8e63c0e42c
commit
a07bdb3fdb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue