mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
inbox_ui: Fix buggy mark as read for empty string topic.
Earlier, marking empty string topic as read via Inbox UI resulted in marking the stream as read. This commit fixes the bug.
This commit is contained in:
committed by
Tim Abbott
parent
dc95699862
commit
3d2fa9f788
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user