diff options
author | fiaxh <git@lightrise.org> | 2023-10-07 14:29:26 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2023-10-07 14:34:23 +0200 |
commit | 1e167eeea67f18f3d5788dc34d97d94e6f401499 (patch) | |
tree | df73a70a25fb02d7a2e70623b3ab5ecbe86ced53 /main/src/ui/conversation_details.vala | |
parent | 0c45387bf903e5b0d02502d27642dd2a78aa6539 (diff) | |
download | dino-1e167eeea67f18f3d5788dc34d97d94e6f401499.tar.gz dino-1e167eeea67f18f3d5788dc34d97d94e6f401499.zip |
Fix some compiler warnings
Diffstat (limited to 'main/src/ui/conversation_details.vala')
-rw-r--r-- | main/src/ui/conversation_details.vala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/ui/conversation_details.vala b/main/src/ui/conversation_details.vala index 70c8ce6d..82d6ae54 100644 --- a/main/src/ui/conversation_details.vala +++ b/main/src/ui/conversation_details.vala @@ -26,15 +26,18 @@ namespace Dino.Ui.ConversationDetails { model.display_name.bind_property("display-name", view_model, "name", BindingFlags.SYNC_CREATE); model.conversation.bind_property("notify-setting", view_model, "notification", BindingFlags.SYNC_CREATE, (_, from, ref to) => { switch (model.conversation.get_notification_setting(stream_interactor)) { - case Conversation.NotifySetting.ON: + case ON: to = ViewModel.ConversationDetails.NotificationSetting.ON; break; - case Conversation.NotifySetting.OFF: + case OFF: to = ViewModel.ConversationDetails.NotificationSetting.OFF; break; - case Conversation.NotifySetting.HIGHLIGHT: + case HIGHLIGHT: to = ViewModel.ConversationDetails.NotificationSetting.HIGHLIGHT; break; + case DEFAULT: + // A "default" setting should have been resolved to the actual default value + assert_not_reached(); } return true; }); |