Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

inbox_ui: Fix buggy mark as read for empty string topic.

Prakhar Pratyush3d2fa9f78831
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.ts
index 68b03d8c511..20118e588e6 100644
--- a/web/src/inbox_ui.ts
+++ b/web/src/inbox_ui.ts
@@ -1602,7 +1602,7 @@ export function initialize(): void {
}
const stream_id = Number($elt.attr("data-stream-id"));
const topic = $elt.attr("data-topic-name");
- if (topic) {
+ if (topic !== undefined) {
unread_ops.mark_topic_as_read(stream_id, topic);
} else {
unread_ops.mark_stream_as_read(stream_id);