-
Notifications
You must be signed in to change notification settings - Fork 178
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
Element call url param #1477
Element call url param #1477
Conversation
Kudos, SonarCloud Quality Gate passed! |
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1477 +/- ##
===========================================
+ Coverage 58.38% 58.40% +0.02%
===========================================
Files 1133 1133
Lines 30264 30281 +17
Branches 6196 6201 +5
===========================================
+ Hits 17669 17686 +17
Misses 9943 9943
Partials 2652 2652
☔ View full report in Codecov by Sentry. |
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.
Looks okay I think, although if it were me I would probably try to use Android's query string parsing/building to do the work, even though this is really awkward because 1. they only work on whole URLs for some reason, so you'd have to construct an intermediate fake URL builder with the fragment query as the real query string, using that to build a query string and 2. the classes to read and build URLs are separate so you'd need one of each to examine the old fragment query string and one to create the edited one.
I think this is okay though, might just behave oddly if it were given params with no values or something.
I agree, there is lots of manual stuff, this is not ideal. Unit tests are helping to reassures us. One other thing, the Uri builder will URL-encode the fragment, and I do not think we want this... |
Type of change
Content
Pass parameter
appPrompt
andconfineToRoom
in the fragment part of the URLFTR: iOS PR: element-hq/element-x-ios#1833
Motivation and context
Better Element Call URL. Those parameters does not need to reach the server.
Screenshots / GIFs
Tests
Tested devices
Checklist