-
Notifications
You must be signed in to change notification settings - Fork 782
Add a setting to be able to always appear offline #5583
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
Add a setting to be able to always appear offline #5583
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.
This might require input from product team, as this is adding a setting we might not want for some reason.
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.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 PR, I added some comments
...id/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/PresenceSyncHandler.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.kt
Outdated
Show resolved
Hide resolved
Done. It's ok to have this setting available, and it will be added on iOS as well as part of the presence display improvement there. |
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.
It would be good to avoid the activity restart if possible. I added a comment regarding that
…tting # Conflicts: # matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/MatrixConfiguration.kt # vector/src/main/java/im/vector/app/core/di/SingletonModule.kt # vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.kt
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, some comments
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.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.
Some minor and less minor remarks
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/MatrixConfiguration.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/settings/VectorSettingsPreferencesFragment.kt
Outdated
Show resolved
Hide resolved
…tting # Conflicts: # vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt
…tting # Conflicts: # vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt
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.
Just a last remark about the changelog.
Also the PR description is quite out of date. Can you update it please, for posterity?
) : PresenceService { | ||
|
||
override suspend fun setMyPresence(presence: PresenceEnum, statusMsg: String?) { | ||
lightweightSettingsStorage.setSyncPresenceStatus(SyncPresence.from(presence)) |
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.
Not a big deal, but storing the value could be handled by setPresenceTask
. Not sure what is best, so let's keep it like that.
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. I will squash and commit.
Type of change
Content
Presence enabling has been moved to an offline mode user setting. When enabled, user will always appear offline, even when using the application.
Motivation and context
Fixes #5582
Screenshots / GIFs
Tests
Tested devices
Checklist