mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug in the messenger loading.
This commit is contained in:
parent
c8d7044efb
commit
6291a04ed2
|
@ -627,9 +627,12 @@ int Messenger_load(uint8_t * data, uint32_t length)
|
|||
uint32_t i;
|
||||
for(i = 0; i < num; i++)
|
||||
{
|
||||
int fnum = m_addfriend_norequest(temp[i].client_id);
|
||||
setfriendname(fnum, temp[i].name);
|
||||
set_friend_userstatus(fnum, temp[i].userstatus, temp[i].userstatus_length);
|
||||
if(temp[i].status != 0)
|
||||
{
|
||||
int fnum = m_addfriend_norequest(temp[i].client_id);
|
||||
setfriendname(fnum, temp[i].name);
|
||||
set_friend_userstatus(fnum, temp[i].userstatus, temp[i].userstatus_length);
|
||||
}
|
||||
}
|
||||
free(temp);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user