Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: behaviour of group api function #2370

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

JFreegman
Copy link
Member

@JFreegman JFreegman commented Jan 5, 2023

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.

The original purpose of this function was to inform us if we've manually disconnected from a group. In all other instances, we are effectively "connected" in the sense that we're actively searching for the group in the DHT, if not outright connected to other peers.


This change is Reviewable

@JFreegman JFreegman added the api break Change breaks API or ABI label Jan 5, 2023
@JFreegman JFreegman added this to the v0.2.19 milestone Jan 5, 2023
@codecov
Copy link

codecov bot commented Jan 5, 2023

Codecov Report

Merging #2370 (e42b4bb) into master (63f993a) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head e42b4bb differs from pull request most recent head b2ca401. Consider uploading reports for the commit b2ca401 to get more accurate results

@@            Coverage Diff            @@
##           master   #2370      +/-   ##
=========================================
- Coverage    9.94%   9.93%   -0.01%     
=========================================
  Files         141     141              
  Lines       32503   32503              
=========================================
- Hits         3231    3229       -2     
- Misses      29272   29274       +2     
Impacted Files Coverage Δ
toxcore/tox.c 7.80% <0.00%> (ø)
toxcore/group_chats.c 7.21% <0.00%> (-0.11%) ⬇️
toxcore/net_crypto.c 8.10% <0.00%> (+0.07%) ⬆️
toxcore/TCP_client.c 5.89% <0.00%> (+0.22%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@Green-Sky Green-Sky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 0 of 1 approvals obtained

Copy link

@sudden6 sudden6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

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
@JFreegman JFreegman merged commit b2ca401 into TokTok:master Jan 24, 2023
@JFreegman JFreegman deleted the group_connection_status branch January 24, 2023 22:46
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api break Change breaks API or ABI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants