From b2ca401543f0117df689536b2208c1f2e2b829ee Mon Sep 17 00:00:00 2001 From: jfreegman Date: Thu, 5 Jan 2023 10:51:37 -0500 Subject: [PATCH] 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 --- other/bootstrap_daemon/docker/tox-bootstrapd.sha256 | 2 +- toxcore/tox.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 index b0f67d0d..a302ee38 100644 --- a/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 +++ b/other/bootstrap_daemon/docker/tox-bootstrapd.sha256 @@ -1 +1 @@ -3d28c914487efaae4336af17b221049c73249fb917d672f5ae6d9c092522a24f /usr/local/bin/tox-bootstrapd +b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd diff --git a/toxcore/tox.c b/toxcore/tox.c index 4b2350c5..3f7dcc43 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -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;