Complete connection once friends list is succesfully fetched

This commit is contained in:
Salman Ahmed 2020-12-17 13:44:30 +03:00
parent 904a4daa98
commit 5d180753fa
1 changed files with 8 additions and 4 deletions

View File

@ -146,11 +146,15 @@ private void run()
failureCount = 0;
var friendsReq = new GetFriendsRequest();
friendsReq.Success += f => Friends.AddRange(f);
handleRequest(friendsReq);
friendsReq.Success += f =>
{
Friends.AddRange(f);
//we're connected!
state.Value = APIState.Online;
//we're connected!
state.Value = APIState.Online;
};
handleRequest(friendsReq);
};
if (!handleRequest(userReq))