Skip to content

TalkAPI: added list_participants method + fix for statuses #142

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

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

bigcat88
Copy link
Member

@bigcat88 bigcat88 commented Oct 6, 2023

While writing examples for documentation on how to work with the Talk API, I realized that there was no method for obtaining a list of participants in a conversation.
Now it is :)

A bug was also found that the statuses for one-to-one conversations were always empty.
Corrected and added a test for this.

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #142 (dd987ef) into main (ddbd2c0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #142   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          34       34           
  Lines        2926     2976   +50     
=======================================
+ Hits         2919     2969   +50     
  Misses          7        7           
Files Coverage Δ
nc_py_api/_talk_api.py 100.00% <100.00%> (ø)
nc_py_api/talk.py 100.00% <100.00%> (ø)
nc_py_api/user_status.py 100.00% <100.00%> (ø)

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@bigcat88 bigcat88 enabled auto-merge (squash) October 6, 2023 18:55
@bigcat88 bigcat88 merged commit fb8cb4e into main Oct 6, 2023
@bigcat88 bigcat88 deleted the talkapi-list_participants branch October 6, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant