         // Set sound name based on the value provided in action of MXPushRule
         for ruleAction in pushRule?.actions ?? [] {
             guard let action = ruleAction as? MXPushRuleAction else { continue }
-            
-            if action.actionType == MXPushRuleActionTypeSetTweak {
-                if (action.parameters["set_tweak"] as? String == "sound") {
-                    soundName = action.parameters["value"] as? String
-                    if (soundName == "default") {
-                        soundName = "message.caf"
-                    }
-                }
+            guard action.actionType == MXPushRuleActionTypeSetTweak else { continue }
+            guard action.parameters["set_tweak"] as? String == "sound" else { continue }
+            soundName = action.parameters["value"] as? String
+            if soundName == "default" {
+                soundName = "message.caf"
             }
         }
         

    func notificationCategoryIdentifier(forEvent event: MXEvent) -> String? {
        let isNotificationContentShown = !event.isEncrypted || self.showDecryptedContentInNotifications
        
        var categoryIdentifier: String?
        
        if (event.eventType == .roomMessage || event.eventType == .roomEncrypted) && isNotificationContentShown {
            categoryIdentifier = "QUICK_REPLY"
        }
        
        return categoryIdentifier
    }
    
}

    
    func fallbackToOriginalContent() {
        store?.close()
        guard let content = originalContent else {
            NSLog("[NotificationService] Fallback case 13")
            return
        }
        
        //  call contentHandler
        contentHandler?(content)
    }
    
    func notificationContent(forEvent event: MXEvent, inAccount account: MXKAccount, onComplete: @escaping (UNNotificationContent?) -> Void) {
