-
Notifications
You must be signed in to change notification settings - Fork 731
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
support email invite #3739
support email invite #3739
Conversation
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.
Some first remarks, will test later
...oid/src/main/java/org/matrix/android/sdk/internal/session/identity/Sign3pidInvitationTask.kt
Outdated
Show resolved
Hide resolved
...src/main/java/org/matrix/android/sdk/internal/session/identity/model/SignInvitationResult.kt
Show resolved
Hide resolved
@@ -253,7 +253,7 @@ internal interface RoomAPI { | |||
@POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "join/{roomIdOrAlias}") | |||
suspend fun join(@Path("roomIdOrAlias") roomIdOrAlias: String, | |||
@Query("server_name") viaServers: List<String>, | |||
@Body params: Map<String, String?>): JoinRoomResponse | |||
@Body params: @JvmSuppressWildcards Map<String, Any>): JoinRoomResponse |
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.
Use JsonDict
?
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.
done
...x-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkParser.kt
Outdated
Show resolved
Hide resolved
62458f0
to
af8dd26
Compare
af8dd26
to
6c2a052
Compare
...ix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/identity/IdentityAPI.kt
Show resolved
Hide resolved
...oid/src/main/java/org/matrix/android/sdk/internal/session/identity/Sign3pidInvitationTask.kt
Outdated
Show resolved
Hide resolved
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.
Thanks for the update!
f73eb91
to
efa9ff0
Compare
Fixes #3695
Fixes #3691
Supports accepting email invite when the email is not bound to the account.
When your email is bound to an identity server and you are invited by email to a room, the invite will come down as part of the sync and the invite will appear in the UI. If not (no identity server or no mail bound), the invite will not show in the UX.
This PR will allow to accept invites on Element Android when your email is not bound to an IS by using Ephemeral Invitation Signing
When clicking on the link of the email invite, EA will open and will allow you to validate the invitation.
NB: The link generated in the API is a v1 link that is deprecated, so EA will use v1 API. v2 API cannot be used now because it requires auth and accept terms, and it degrades the invite flow too much.
Ideally EA should perform the signing locally as it as all info and is crypto capabale, but the documentation is not saying what the signing should be :/
Web would display:
The email invite looks like that
In prevision of MSC3288 this PR also support a room_type event in the link in order to adapt the invite text.