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

feat(ffi): Auto approve the required widget capabilities for element call raise hand and reaction feature. #4229

Merged

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Nov 6, 2024

This is the same work as done in:
element-hq/element-web#28401

It also refactors the ffi get_element_call_required_permissions function to use a read_send array that gets copied both (read and send) capability lists.

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@toger5 toger5 force-pushed the toger5/auto-approve-element-call-reaction-and-raise-hand branch from c9b385d to e564729 Compare November 6, 2024 18:09
@toger5 toger5 marked this pull request as ready for review November 6, 2024 21:13
@toger5 toger5 requested a review from a team as a code owner November 6, 2024 21:13
@toger5 toger5 requested review from jmartinesp and removed request for a team November 6, 2024 21:13
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.82%. Comparing base (8d07f36) to head (ca99fd1).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4229      +/-   ##
==========================================
- Coverage   84.83%   84.82%   -0.02%     
==========================================
  Files         273      273              
  Lines       29519    29519              
==========================================
- Hits        25042    25039       -3     
- Misses       4477     4480       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM, just left a question about a comment.

// This allows the widget to check the room version, so it can know about
// version-specific auth rules (namely MSC3779).
WidgetEventFilter::StateWithType { event_type: StateEventType::RoomCreate.to_string() },
],
// Custom element call reaction event. (which can be send multiple times for one
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment correctly placed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is an accident thx.
removed it since the same/similar comment is at the right location.

@toger5 toger5 force-pushed the toger5/auto-approve-element-call-reaction-and-raise-hand branch from e564729 to ca99fd1 Compare November 7, 2024 08:28
@jmartinesp jmartinesp merged commit 5193c20 into main Nov 7, 2024
40 checks passed
@jmartinesp jmartinesp deleted the toger5/auto-approve-element-call-reaction-and-raise-hand branch November 7, 2024 11:42
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.

2 participants