Skip to content

Commit b2ca401

Browse files
committed
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
1 parent 63f993a commit b2ca401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3d28c914487efaae4336af17b221049c73249fb917d672f5ae6d9c092522a24f /usr/local/bin/tox-bootstrapd
1+
b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd

toxcore/tox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3050,7 +3050,7 @@ bool tox_group_is_connected(const Tox *tox, uint32_t group_number, Tox_Err_Group
30503050

30513051
SET_ERROR_PARAMETER(error, TOX_ERR_GROUP_IS_CONNECTED_OK);
30523052

3053-
const bool ret = chat->connection_state == CS_CONNECTED;
3053+
const bool ret = chat->connection_state == CS_CONNECTED || chat->connection_state == CS_CONNECTING;
30543054
tox_unlock(tox);
30553055

30563056
return ret;

0 commit comments

Comments
 (0)