forked from reya/coop-mobile
feat: screener for message requests (#24)
Reviewed-on: https://git.reya.su/reya/coop-mobile/pulls/24
This commit is contained in:
@@ -8,7 +8,7 @@ import su.reya.coop.NostrViewModel
|
||||
import su.reya.coop.Room
|
||||
import su.reya.coop.short
|
||||
|
||||
fun Room.displayNameFlow(viewModel: NostrViewModel): Flow<String> {
|
||||
fun Room.nameFlow(viewModel: NostrViewModel): Flow<String> {
|
||||
// Return early if there's a custom subject/room name
|
||||
subject?.takeIf { it.isNotBlank() }?.let { return flowOf(it) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user