1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 19:56:45 +02:00

Add settings option to disable friend connection change notifications

This commit is contained in:
Jfreegman
2016-02-25 17:06:49 -05:00
parent 93835f0455
commit a474e3bf39
8 changed files with 39 additions and 7 deletions

View File

@ -215,6 +215,10 @@ static void chat_onConnectionChange(ToxWindow *self, Tox *m, uint32_t num, TOX_C
char nick[TOX_MAX_NAME_LENGTH];
get_nick_truncate(m, nick, num);
if (user_settings->show_connection_msg == SHOW_WELCOME_MSG_OFF) {
return;
}
if (connection_status != TOX_CONNECTION_NONE && statusbar->connection == TOX_CONNECTION_NONE) {
Friends.list[num].is_typing = user_settings->show_typing_other == SHOW_TYPING_ON
? tox_friend_get_typing(m, num, NULL) : false;