1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-22 17:33:26 +01:00

Fix chatlog saving with new hide connection msg pr

This commit is contained in:
Tha14 2022-06-28 01:58:32 +03:00
parent 85024bfce8
commit 146b00b8ca
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC

View File

@ -1033,7 +1033,10 @@ void groupchat_onGroupPeerExit(ToxWindow *self, Tox *m, uint32_t groupnumber, ui
snprintf(log_str, sizeof(log_str), "[%s]", exit_string);
}
write_to_log(log_str, name, self->chatwin->log, true);
if (user_settings->show_group_connection_msg == SHOW_GROUP_CONNECTION_MSG_ON) {
write_to_log(log_str, name, self->chatwin->log, true);
}
sound_notify(self, silent, NT_WNDALERT_2, NULL);
}