-
Notifications
You must be signed in to change notification settings - Fork 279
Invites room summary fallback #4780
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
…nt data if fetching the preview fails - relates to element-hq/element-x-ios/issues/3713 - this will allow us to interact with them even if the given homeserver doesn't have MSC3266 enabled
…ds as those should be retrieved through the room preview
9168936
to
abe8338
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4780 +/- ##
==========================================
+ Coverage 86.34% 86.36% +0.01%
==========================================
Files 291 291
Lines 34233 34245 +12
==========================================
+ Hits 29560 29574 +14
+ Misses 4673 4671 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
lgtm, thanks1
- we're doing this as an extra layer of protection against spam attacks.
afc5096
to
ca025f8
Compare
This PR introduces a fallback mechanism for dealing with invites when the room summary API MSC3266 isn't enabled on the homeserver.
It does so by trying to use whatever data the client has cached about the room, and even though it won't contain a lot of information, it will still provide an usable instance which can be used to accept/decline the invite and partially populate the join room screen (in EX).
It also deals away with the now unnecessary
invited_room
andinviter
and expose a new client one for fetching arbitrary rooms based on their identifier.