-
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
Local Notification Settings Event #7300
Local Notification Settings Event #7300
Conversation
…ifications # Conflicts: # vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewAction.kt # vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewFragment.kt # vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModel.kt # vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewState.kt # vector/src/main/res/layout/fragment_session_overview.xml # vector/src/test/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModelTest.kt
…ic/notificaton-settings-enabled # Conflicts: # vector/src/test/java/im/vector/app/core/pushers/PushersManagerTest.kt
…ic/notificaton-settings-enabled
…/eric/local_notification_settings
…ic/notificaton-settings-enabled
…/eric/local_notification_settings
…ic/notificaton-settings-enabled
…/eric/local_notification_settings
…ic/notificaton-settings-enabled
…/eric/local_notification_settings
…ic/notificaton-settings-enabled
…/eric/local_notification_settings
…icaton-settings-enabled # Conflicts: # vector/src/test/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModelTest.kt # vector/src/test/java/im/vector/app/test/fakes/FakePushersService.kt
…/eric/local_notification_settings
@@ -28,4 +28,5 @@ object UserAccountDataTypes { | |||
const val TYPE_IDENTITY_SERVER = "m.identity_server" | |||
const val TYPE_ACCEPTED_TERMS = "m.accepted_terms" | |||
const val TYPE_OVERRIDE_COLORS = "im.vector.setting.override_colors" | |||
const val TYPE_LOCAL_NOTIFICATION_SETTINGS = "m.local_notification_settings" |
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 need to unstable prefix. Please see the bottom of the MSC-3890
val currentSession = activeSessionHolder.getActiveSession() | ||
viewModelScope.launch { | ||
currentSession.accountDataService() | ||
.getLiveUserAccountDataEvent(UserAccountDataTypes.TYPE_LOCAL_NOTIFICATION_SETTINGS) |
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.
Do we need to add device_id
at the end of the UserAccountDataTypes.TYPE_LOCAL_NOTIFICATION_SETTINGS
type according to the MSC?
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. LGTM but didn't test on a device.
…_notification_settings
SonarCloud Quality Gate failed. |
Type of change
Content
Handles the client side of using the LocalNotificationSettings event to remotely toggle an account's notifications
Motivation and context
Epic https://element-io.atlassian.net/browse/PSG-595
Closes https://element-io.atlassian.net/browse/PSG-779
Screenshots / GIFs
N/A
Tests
The account data event can only be sent from web build from https://element-io.atlassian.net/browse/PSG-709 so this was tested locally by making changes in the code forcing the silenced value to
false
Tested devices
Checklist