mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Remove useless check
This commit is contained in:
parent
a29ec7b0be
commit
71446a1a74
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue