forked from GitHub-Mirror/riotX-android
Cleans notification pref screen
+ fix troubleshoots
This commit is contained in:
@ -61,4 +61,6 @@ interface PushersService {
|
||||
}
|
||||
|
||||
fun livePushers(): LiveData<List<Pusher>>
|
||||
|
||||
fun pushers() : List<Pusher>
|
||||
}
|
@ -503,6 +503,10 @@ internal class DefaultSession(override val sessionParams: SessionParams) : Sessi
|
||||
return pushersService.livePushers()
|
||||
}
|
||||
|
||||
override fun pushers(): List<Pusher> {
|
||||
return pushersService.pushers()
|
||||
}
|
||||
|
||||
override fun getPushRules(scope: String): List<PushRule> {
|
||||
return pushRuleService.getPushRules(scope)
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ internal class DefaultPusherService(
|
||||
}
|
||||
|
||||
override fun removeHttpPusher(pushkey: String, appId: String, callback: MatrixCallback<Unit>) {
|
||||
val params = RemovePusherTask.Params(sessionParam.credentials.userId,pushkey,appId)
|
||||
val params = RemovePusherTask.Params(sessionParam.credentials.userId, pushkey, appId)
|
||||
removePusherTask
|
||||
.configureWith(params)
|
||||
.dispatchTo(callback)
|
||||
@ -111,4 +111,8 @@ internal class DefaultPusherService(
|
||||
{ it.asDomain() }
|
||||
)
|
||||
}
|
||||
|
||||
override fun pushers(): List<Pusher> {
|
||||
return monarchy.fetchAllCopiedSync { PusherEntity.where(it, sessionParam.credentials.userId) }.map { it.asDomain() }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user