-
Notifications
You must be signed in to change notification settings - Fork 294
ffi: Fix get_element_call_required_permissions
#3455
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
Conversation
…urns and have them match what Element Call actually expects
get_element_call_required_permissions
get_element_call_required_permissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we test this, other than running it on the apps? This seems quite frail; it would make sense in my opinion to take all the ElementCall related call, put it under a new crate umbrella so we can test it properly, and then expose that to the FFI, maybe?
(Note: the above questions are general discussions to have for a better strategy for all of this, and don't block the merging of this PR if Timo says it's fine to merge as is.)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3455 +/- ##
==========================================
- Coverage 83.27% 83.27% -0.01%
==========================================
Files 247 247
Lines 25091 25091
==========================================
- Hits 20895 20894 -1
- Misses 4196 4197 +1 ☔ View full report in Codecov by Sentry. |
I'm not entirely sure to be honest as in the end you need to run the actual ElementCall web app to validate things actually work. I reckon an integration UI test in the final client would be the simplest way. |
I think this particular case is very much a Element Call testing case and not rust sdk. The best test approach imo is to strictly define the permissions we want the widget to have and then use test that both projects are compatible with our defined capabilities. Going forward we need to eventually use resources on the voip team to investigate why ElementCall wont load if the capability is missing. then we can remove the |
Alrighty, I think you can go ahead and merge this @bnjbvr. Thaaank you! |
-fix what permissions
get_element_call_required_permissions
returns and have them match what Element Call actually expectsLoading
screenacquireCapabilities(capabilities:)
org.matrix.msc3401.call
is deprecated and should not be required although ElementCall doesn't work without it. He will clean up the web side and then come back to remove this as well in a later PR.