Skip to content

Commit

Permalink
Fix FCM disabling. Fixes #475.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Feb 12, 2020
1 parent e25ca84 commit 7295449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Shared/Settings/SettingsStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ public class SettingsStore {

public var notificationsEnabled: Bool {
get {
if prefs.object(forKey: "messagingEnabled") != nil && prefs.bool(forKey: "messagingEnabled") == false {
return false
}
return prefs.bool(forKey: "notificationsEnabled")
}
set {
prefs.set(newValue, forKey: "messagingEnabled")
prefs.set(newValue, forKey: "notificationsEnabled")
}
}
Expand Down

0 comments on commit 7295449

Please sign in to comment.