mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Add parameter wasLastSession to SessionListener.onSessionDeleted
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ class DefaultSeenInvitesStore(
|
||||
init {
|
||||
sessionObserver.addListener(object : SessionListener {
|
||||
override suspend fun onSessionCreated(userId: String) = Unit
|
||||
override suspend fun onSessionDeleted(userId: String) {
|
||||
override suspend fun onSessionDeleted(userId: String, wasLastSession: Boolean) {
|
||||
if (sessionId.value == userId) {
|
||||
clear()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user