mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Introduce a user session manager (#6295)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Copyright 2026 Element Creations Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
/// What a flow can know about a signed in account, without access to its session.
|
||||
struct UserSessionDetails {
|
||||
let userID: String
|
||||
}
|
||||
|
||||
extension UserSessionDetails {
|
||||
init(userSession: UserSessionProtocol) {
|
||||
userID = userSession.clientProxy.userID
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user