     
     /// Cached events. Keys are eventId's
     var cachedEvents: [String: MXEvent] = [:]
-    var mxSession: MXSession?
+    static var mxSession: MXSession?
     static var store: NSEMemoryStore!
     lazy var showDecryptedContentInNotifications: Bool = {
         return RiotSettings.shared.showDecryptedContentInNotifications

                })
            } else {
                NSLog("[NotificationService] Instance: Reusing session")
            }
        } else {
            NSLog("[NotificationService] setup: No active accounts")

    }
    
    func fetchEvent(withEventId eventId: String) {
        guard let content = originalContents[eventId], let mxSession = NotificationService.mxSession else {
            //  there is something wrong, do not change the content
            NSLog("[NotificationService] fetchEvent: Either originalContent or mxSession is missing.")
            fallbackToOriginalContent(forEventId: eventId)
