瀏覽代碼

fix lint issue

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)
                     userInfo: userInfo)
 
 
             let chat = DcContext.shared.getChat(chatId: Int(data1))
             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 content = UNMutableNotificationContent()
                 let msg = DcMsg(id: Int(data2))
                 let msg = DcMsg(id: Int(data2))
                 content.title = msg.fromContact.displayName
                 content.title = msg.fromContact.displayName