Add default implementation to SessionListener

This commit is contained in:
Benoit Marty 2025-10-23 16:23:01 +02:00 committed by Benoit Marty
parent 9ca5fbdc08
commit a18eb6eb5e
8 changed files with 2 additions and 18 deletions

View file

@ -8,6 +8,6 @@
package io.element.android.libraries.sessionstorage.api.observer
interface SessionListener {
suspend fun onSessionCreated(userId: String)
suspend fun onSessionDeleted(userId: String, wasLastSession: Boolean)
suspend fun onSessionCreated(userId: String) = Unit
suspend fun onSessionDeleted(userId: String, wasLastSession: Boolean) = Unit
}