Fix behaviour of group api function

The function that tells us if we're connected to a group now behaves
according to the documentation and returns true if we're attempting
to connect to a group, rather than only returning true if we've
connected with other peers
This commit is contained in:
jfreegman 2023-01-05 10:51:37 -05:00
parent 63f993a331
commit b2ca401543
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
3d28c914487efaae4336af17b221049c73249fb917d672f5ae6d9c092522a24f /usr/local/bin/tox-bootstrapd
b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd

View File

@ -3050,7 +3050,7 @@ bool tox_group_is_connected(const Tox *tox, uint32_t group_number, Tox_Err_Group
SET_ERROR_PARAMETER(error, TOX_ERR_GROUP_IS_CONNECTED_OK);
const bool ret = chat->connection_state == CS_CONNECTED;
const bool ret = chat->connection_state == CS_CONNECTED || chat->connection_state == CS_CONNECTING;
tox_unlock(tox);
return ret;