mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Fix messages with server-time not showing as new activity
Added a parameter to fe_print_text() to say that the message does not represent new activity. This is used when a log from an old session is loaded. This used to be implicit whenever the timestamp was non-zero, but with server-time this no longer makes sense. Fixes issue #746.
This commit is contained in:
@@ -607,12 +607,13 @@ fe_progressbar_end (server *serv)
|
||||
}
|
||||
|
||||
void
|
||||
fe_print_text (struct session *sess, char *text, time_t stamp)
|
||||
fe_print_text (struct session *sess, char *text, time_t stamp,
|
||||
gboolean no_activity)
|
||||
{
|
||||
PrintTextRaw (sess->res->buffer, (unsigned char *)text, prefs.hex_text_indent, stamp);
|
||||
|
||||
if (!sess->new_data && sess != current_tab &&
|
||||
sess->gui->is_tab && !sess->nick_said && stamp == 0)
|
||||
if (!no_activity && !sess->new_data && sess != current_tab &&
|
||||
sess->gui->is_tab && !sess->nick_said)
|
||||
{
|
||||
sess->new_data = TRUE;
|
||||
lastact_update (sess);
|
||||
|
||||
Reference in New Issue
Block a user