mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed TOX_USER_STATUS_INVALID.
This commit is contained in:
parent
d711362622
commit
dc60d98ff1
|
@ -702,7 +702,7 @@ TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TO
|
||||||
|
|
||||||
if (ret == USERSTATUS_INVALID) {
|
if (ret == USERSTATUS_INVALID) {
|
||||||
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND);
|
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND);
|
||||||
return TOX_USER_STATUS_INVALID;
|
return TOX_USER_STATUS_BUSY + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_OK);
|
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_OK);
|
||||||
|
|
|
@ -289,11 +289,7 @@ typedef enum TOX_USER_STATUS {
|
||||||
* User is busy. Signals to other clients that this client does not
|
* User is busy. Signals to other clients that this client does not
|
||||||
* currently wish to communicate.
|
* currently wish to communicate.
|
||||||
*/
|
*/
|
||||||
TOX_USER_STATUS_BUSY,
|
TOX_USER_STATUS_BUSY
|
||||||
/**
|
|
||||||
* Invalid status used when function returns an error.
|
|
||||||
*/
|
|
||||||
TOX_USER_STATUS_INVALID
|
|
||||||
} TOX_USER_STATUS;
|
} TOX_USER_STATUS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user