1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 13:56:34 +01:00

don't sort after every friend add on statup

This commit is contained in:
Jfreegman
2013-12-04 01:08:26 -05:00
parent 2fde13530b
commit a2af0bc047
6 changed files with 18 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ void cmd_accept(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[
wprintw(window, "Failed to add friend.\n");
else {
wprintw(window, "Friend request accepted.\n");
on_friendadded(m, friendnum);
on_friendadded(m, friendnum, true);
}
memset(&pending_frnd_requests[req], 0, TOX_CLIENT_ID_SIZE);
@@ -142,7 +142,7 @@ void cmd_add(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
break;
default:
wprintw(window, "Friend request sent.\n");
on_friendadded(m, f_num);
on_friendadded(m, f_num, true);
break;
}
}