Remove useless check

This commit is contained in:
Benoit Marty 2020-03-06 17:11:23 +01:00
parent a29ec7b0be
commit 71446a1a74
1 changed files with 1 additions and 3 deletions

View File

@ -161,9 +161,7 @@ class VectorSettingsNotificationPreferenceFragment @Inject constructor(
val switchPref = preference as SwitchPreference
if (switchPref.isChecked) {
FcmHelper.getFcmToken(requireContext())?.let {
if (vectorPreferences.areNotificationEnabledForDevice()) {
pushManager.registerPusherWithFcmKey(it)
}
pushManager.registerPusherWithFcmKey(it)
}
} else {
FcmHelper.getFcmToken(requireContext())?.let {