element-hq/element-x-ios/issues/2670 - Show invites as part of the room list

This commit is contained in:
Stefan Ceriu
2024-04-08 10:26:33 +03:00
committed by Stefan Ceriu
parent d34ec30ca6
commit 064626fbbe
46 changed files with 541 additions and 118 deletions
@@ -102,7 +102,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
if let existingSession = userSessions[credentials.userID] {
userSession = existingSession
} else {
userSession = try NSEUserSession(credentials: credentials, clientSessionDelegate: keychainController)
userSession = try await NSEUserSession(credentials: credentials, clientSessionDelegate: keychainController)
userSessions[credentials.userID] = userSession
}
+2 -2
View File
@@ -26,7 +26,7 @@ final class NSEUserSession {
backgroundTaskService: nil)
private let delegateHandle: TaskHandle?
init(credentials: KeychainCredentials, clientSessionDelegate: ClientSessionDelegate) throws {
init(credentials: KeychainCredentials, clientSessionDelegate: ClientSessionDelegate) async throws {
userID = credentials.userID
if credentials.restorationToken.passphrase != nil {
MXLog.info("Restoring client with encrypted store.")
@@ -47,7 +47,7 @@ final class NSEUserSession {
clientBuilder = clientBuilder.proxy(url: proxy)
}
baseClient = try clientBuilder.build()
baseClient = try await clientBuilder.build()
delegateHandle = baseClient.setDelegate(delegate: ClientDelegateWrapper())
try baseClient.restoreSession(session: credentials.restorationToken.session)