Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TokTok/c-toxcore
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f4cbc9792294c86e09cbb99bd3dffc802032cdc8
Choose a base ref
..
head repository: TokTok/c-toxcore
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: df6d87e89f08852c8ba308fee85e4f629b37bb68
Choose a head ref
Showing with 6 additions and 8 deletions.
  1. +6 −8 toxcore/Messenger.c
14 changes: 6 additions & 8 deletions toxcore/Messenger.c
Original file line number Diff line number Diff line change
@@ -2468,14 +2468,12 @@ static void do_friends(Messenger *m, void *userdata)
}
}

if (m->friendlist[i].status == FRIEND_REQUESTED
|| m->friendlist[i].status == FRIEND_CONFIRMED) { /* friend is not online. */
if (m->friendlist[i].status == FRIEND_REQUESTED) {
/* If we didn't connect to friend after successfully sending him a friend request the request is deemed
* unsuccessful so we set the status back to FRIEND_ADDED and try again.
*/
check_friend_request_timed_out(m, i, temp_time, userdata);
}
if (m->friendlist[i].status == FRIEND_REQUESTED) {
/* If we didn't connect to friend after successfully sending him a friend
* request the request is deemed unsuccessful so we set the status back to
* FRIEND_ADDED and try again.
*/
check_friend_request_timed_out(m, i, temp_time, userdata);
}

if (m->friendlist[i].status == FRIEND_ONLINE) { /* friend is online. */