Improve API: use RoomId instead of String.
This commit is contained in:
parent
ddf76d818a
commit
dc65191e2c
5 changed files with 11 additions and 10 deletions
|
|
@ -131,9 +131,9 @@ class RustNotificationSettingsService(
|
|||
}
|
||||
}
|
||||
|
||||
override suspend fun getRoomsWithUserDefinedRules(): Result<List<String>> =
|
||||
override suspend fun getRoomsWithUserDefinedRules(): Result<List<RoomId>> =
|
||||
runCatchingExceptions {
|
||||
notificationSettings.await().getRoomsWithUserDefinedRules(enabled = true)
|
||||
notificationSettings.await().getRoomsWithUserDefinedRules(enabled = true).map(::RoomId)
|
||||
}
|
||||
|
||||
override suspend fun canHomeServerPushEncryptedEventsToDevice(): Result<Boolean> =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue