-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(notifications): enable / disable channels on settings
- Loading branch information
1 parent
c2b3f9e
commit 3b966b9
Showing
6 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
use es_entity::EsEntityProjection; | ||
|
||
use super::types::NotificationSettingsAlt; | ||
use crate::account_notification_settings::*; | ||
use crate::{account_notification_settings::*, primitives::*}; | ||
|
||
impl EsEntityProjection<AccountNotificationSettingsEvent> for NotificationSettingsAlt { | ||
fn apply(&mut self, _: &AccountNotificationSettingsEvent) -> Self { | ||
impl From<AccountNotificationSettings> for NotificationSettingsAlt { | ||
fn from(settings: AccountNotificationSettings) -> Self { | ||
// NotificationSettingsAlt { | ||
// push: NotificationChannelSettingsAlt { | ||
// enabled: settings.is_channel_enabled(NotificationChannel::Push), | ||
// disabled_categories: settings.dissabled_categories_for(NotificationChannel::Push), | ||
// }, | ||
// } | ||
unimplemented!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters