private void UpdatePeerNotifySettings(PeerNotifySettingsConstructor newSettings) { if (newSettings == null) { logger.error("Strange shit is happened, newSettings == null"); return; } if (peerNotifySettings == null) { peerNotifySettings = newSettings; OnPropertyChanged("NotificationSound"); OnPropertyChanged("NotificationsEnabled"); return; } if (peerNotifySettings.sound != newSettings.sound) { peerNotifySettings = newSettings; OnPropertyChanged("NotificationSound"); } else if (peerNotifySettings.mute_until != newSettings.mute_until) { peerNotifySettings = newSettings; OnPropertyChanged("NotificationsEnabled"); } }