Skip to content

Commit

Permalink
Fix behaviour of group api function
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JFreegman committed Jan 24, 2023
1 parent 63f993a commit b2ca401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion other/bootstrap_daemon/docker/tox-bootstrapd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3d28c914487efaae4336af17b221049c73249fb917d672f5ae6d9c092522a24f /usr/local/bin/tox-bootstrapd
b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd
2 changes: 1 addition & 1 deletion toxcore/tox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b2ca401

Please sign in to comment.