         guard let content = request.content.mutableCopy() as? UNMutableNotificationContent else {
             return
         }
-        originalContent = content
+        originalContents[eventId] = content
         contentHandlers[eventId] = contentHandler
         
         //  setup user account


class NotificationService: UNNotificationServiceExtension {
    
    var contentHandlers: [String: ((UNNotificationContent) -> Void)] = [:]
    var originalContent: UNMutableNotificationContent?
    
    var cachedEvent: MXEvent?
    var mxSession: MXSession?

        //  close session
        mxSession?.close()
        
        guard let content = originalContents[eventId] else {
            NSLog("[NotificationService] fallbackToOriginalContent: Original content is missing.")
            return
        }
