Commit ca7da7ce authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

window: Always reset unread count after opening a chat

Currently, the count is reset only when switching the chat page.
But if the previously selected chat is the same as the currently
selected one, the count isn't reset (as no switching happened)

Fixes #387
parent 88f40a9e
......@@ -1219,5 +1219,6 @@ chatty_window_open_chat (ChattyWindow *self,
gtk_notebook_set_current_page (GTK_NOTEBOOK (self->convs_notebook), page_num);
hdy_leaflet_set_visible_child (HDY_LEAFLET (self->content_box), self->convs_notebook);
chatty_chat_set_unread_count (chat, 0);
gtk_window_present (GTK_WINDOW (self));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment