diff --git a/static/js/unread_ops.js b/static/js/unread_ops.js index f3a2312b41..874dcdfd0a 100644 --- a/static/js/unread_ops.js +++ b/static/js/unread_ops.js @@ -128,9 +128,15 @@ export function process_unread_messages_event({message_ids, message_details}) { }); if (message_info.type === "stream") { + // TODO: Rather than passing a fake partial message, we + // should probably define a proper type for unread message + // data where we don't have the full message object, that + // we can use both in this function and pass to recent + // topics here. recent_topics_ui.update_topic_unread_count({ stream_id: message_info.stream_id, topic: message_info.topic, + type: message_info.type, }); } }