Add parameter wasLastSession to SessionListener.onSessionDeleted

This commit is contained in:
Benoit Marty 2025-10-23 16:20:15 +02:00
parent 0b9a4a6302
commit 44e125dbc7
13 changed files with 15 additions and 14 deletions

View file

@ -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()
}