Add default implementation to SessionListener
This commit is contained in:
committed by
Benoit Marty
parent
9ca5fbdc08
commit
a18eb6eb5e
-4
@@ -108,10 +108,6 @@ class DefaultPushService(
|
||||
sessionObserver.addListener(this)
|
||||
}
|
||||
|
||||
override suspend fun onSessionCreated(userId: String) {
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
/**
|
||||
* The session has been deleted.
|
||||
* In this case, this is not necessary to unregister the pusher from the homeserver,
|
||||
|
||||
-2
@@ -59,8 +59,6 @@ class DefaultNotificationConversationService(
|
||||
|
||||
init {
|
||||
sessionObserver.addListener(object : SessionListener {
|
||||
override suspend fun onSessionCreated(userId: String) = Unit
|
||||
|
||||
override suspend fun onSessionDeleted(userId: String, wasLastSession: Boolean) {
|
||||
onSessionLogOut(SessionId(userId))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user