Skip to content
Snippets Groups Projects
Commit 40277e59 authored by Taras's avatar Taras
Browse files

Add getAll and remove to SessionManager

parent f011caab
No related branches found
No related tags found
No related merge requests found
...@@ -72,4 +72,14 @@ internal class SessionManager @Inject constructor( ...@@ -72,4 +72,14 @@ internal class SessionManager @Inject constructor(
.create(matrixComponent, sessionParams) .create(matrixComponent, sessionParams)
} }
} }
//Added for switch user
fun getAllSessionParams(): List<SessionParams> {
return sessionParamsStore.getAll()
}
//Added for switch user
fun removeSession(sessionId: String) {
if (sessionComponents.containsKey(sessionId)) sessionComponents.remove(sessionId)
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment