1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 04:53:02 +01:00

Fix tab alert bug on peer exit

This commit is contained in:
Tha14 2022-06-28 17:31:27 +03:00
parent 058057c64d
commit 6ef2c784c5
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC

View File

@ -1029,17 +1029,16 @@ void groupchat_onGroupPeerExit(ToxWindow *self, Tox *m, uint32_t groupnumber, ui
if (length > 0) {
line_info_add(self, true, name, NULL, DISCONNECTION, 0, RED, "[Quit]: %s", part_message);
snprintf(log_str, sizeof(log_str), "has left the room (%s)", part_message);
write_to_log(log_str, name, self->chatwin->log, true);
sound_notify(self, silent, NT_WNDALERT_2, NULL);
} else if (user_settings->show_group_connection_msg == SHOW_GROUP_CONNECTION_MSG_ON) {
const char *exit_string = get_group_exit_string(exit_type);
line_info_add(self, true, name, NULL, DISCONNECTION, 0, RED, "[%s]", exit_string);
snprintf(log_str, sizeof(log_str), "[%s]", exit_string);
}
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);
}
sound_notify(self, silent, NT_WNDALERT_2, NULL);
}
int peer_index = get_peer_index(groupnumber, peer_id);