Add roomsWithUserDefinedRules data and render list

- get roomsWithUserDefinedRules from rust
- add to state in the presenter
- render in the edit defaults view as a list
This commit is contained in:
David Langley 2023-09-22 16:16:52 +01:00
parent cfb71ad1f6
commit 752da37383
7 changed files with 147 additions and 0 deletions

View file

@ -110,4 +110,9 @@ class RustNotificationSettingsService(
notificationSettings.setCallEnabled(enabled)
}
}
override suspend fun getRoomsWithUserDefinedRules(): Result<List<String>> =
runCatching {
notificationSettings.getRoomsWithUserDefinedRules(enabled = true)
}
}