cyberta преди 5 години
родител
ревизия
e068e73a22
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      DcCore/DcCore/DC/events.swift

+ 1 - 2
DcCore/DcCore/DC/events.swift

@@ -120,8 +120,7 @@ public func handleEvent(event: DcEvent) {
                     userInfo: userInfo)
 
             let chat = DcContext.shared.getChat(chatId: Int(data1))
-            if !UserDefaults.standard.bool(forKey: "notifications_disabled") && !chat.isMuted
-                {
+            if !UserDefaults.standard.bool(forKey: "notifications_disabled") && !chat.isMuted {
                 let content = UNMutableNotificationContent()
                 let msg = DcMsg(id: Int(data2))
                 content.title = msg.fromContact.displayName