unread: Fix recent topics exception when marking as unread.

This simple regression was introduced in
550a32bb20.
This commit is contained in:
Tim Abbott
2022-10-19 15:29:48 -07:00
parent f2f4bed85c
commit 228ec4bde4

View File

@@ -128,9 +128,15 @@ export function process_unread_messages_event({message_ids, message_details}) {
}); });
if (message_info.type === "stream") { 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({ recent_topics_ui.update_topic_unread_count({
stream_id: message_info.stream_id, stream_id: message_info.stream_id,
topic: message_info.topic, topic: message_info.topic,
type: message_info.type,
}); });
} }
} }