Dont hilight console once all messages have been read

If we receive a message we get:
<< room message: eagle@conference.anoxinon.me (win 2)

Same for private chats and regular chats.
And several other kinds of notifications.

If we only receive notifications from a chat window it would be nice to
also clear the hilight on the console window since we already catched up
by reading the actual message in the chat window.

Probably not the best description :-) I hope you get it..

Regards https://github.com/profanity-im/profanity/issues/1399
This commit is contained in:
Michael Vetter
2020-07-09 15:44:35 +02:00
parent 8a2026ccbe
commit 11d849aa7f
7 changed files with 124 additions and 63 deletions

View File

@@ -281,7 +281,6 @@ void cons_show_incoming_private_message(const char* const nick, const char* cons
void cons_show_room_invites(GList* invites);
void cons_show_received_subs(void);
void cons_show_sent_subs(void);
void cons_alert(void);
void cons_theme_setting(void);
void cons_resource_setting(void);
void cons_privileges_setting(void);
@@ -329,6 +328,11 @@ void cons_theme_colours(void);
void cons_show_tlscert(TLSCertificate* cert);
void cons_show_tlscert_summary(TLSCertificate* cert);
void cons_alert(ProfWin* alert_origin_window);
void cons_remove_alert(ProfWin* window);
void cons_clear_alerts(void);
gboolean cons_has_alerts(void);
// title bar
void title_bar_set_presence(contact_presence_t presence);