-
Notifications
You must be signed in to change notification settings - Fork 735
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
use clipboard hack to get deferred deeplink #7842
base: develop
Are you sure you want to change the base?
Conversation
interface DeferredPermalinkService { | ||
|
||
/** | ||
* Checks system clipboard for matrix.to links and returns first room link if any found |
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.
⚠️ The first sentence of this KDoc does not end with the correct punctuation.
|
||
package org.matrix.android.sdk.internal.session.permalinks | ||
|
||
import android.content.ClipboardManager |
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.
- 🚫 Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
SonarCloud Quality Gate failed. |
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 thoughts.
/** | ||
* Returns the deferredPermalinkService service associated with the session. | ||
*/ | ||
fun deferredPermalinkService(): DeferredPermalinkService |
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.
I am not sure to understand why this code is on the SDK side. It should be at the application level.
@@ -293,6 +293,7 @@ class HomeActivityViewModel @AssistedInject constructor( | |||
.onEach { status -> | |||
when (status) { | |||
is SyncRequestState.Idle -> { | |||
checkDeferredPermalink() |
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.
What is preventing this to be executed at each start (i.e. until the Clipboard is flushed?)
NIkita Fedrunov seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Type of change
Content
When a user follows a matrix.to link on mobile, it doesn't work because the app does not keep the link. Storing the link in the clipboard means it can be pasted to ensure the user reaches the room they intended to...
This is draft PR since it's blocked by
matrix-org/matrix.to#297
Motivation and context
closes #7673
Screenshots / GIFs
Tests
Tested devices
Checklist