Skip to content

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

Merged
jmartinesp merged 1 commit into
mainfrom
toger5/auto-approve-element-call-reaction-and-raise-hand
Nov 7, 2024
Merged

jmartinesp merged 1 commit into
mainfrom
toger5/auto-approve-element-call-reaction-and-raise-hand

Conversation

@toger5

@toger5 toger5 commented Nov 6, 2024

Copy link
Copy Markdown
Contributor

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
@codecov

codecov Bot commented Nov 6, 2024

Copy link
Copy Markdown

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.

@jmartinesp jmartinesp left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread bindings/matrix-sdk-ffi/src/widget.rs Outdated
// 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
Copy Markdown
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
Copy Markdown
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
@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