Remove useless check
This commit is contained in:
parent
a29ec7b0be
commit
71446a1a74
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user