fix: edit moderators not working
This commit is contained in:
parent
5bb71db3b1
commit
df77b61df6
2 changed files with 48 additions and 36 deletions
|
|
@ -44,7 +44,7 @@ import kotlinx.collections.immutable.persistentListOf
|
|||
import kotlinx.collections.immutable.toImmutableList
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.combine
|
||||
import kotlinx.coroutines.flow.emptyFlow
|
||||
import kotlinx.coroutines.flow.flowOf
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.map
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
|
|
@ -81,7 +81,7 @@ class ChangeRolesPresenter(
|
|||
val owners = if (role == RoomMember.Role.Admin) {
|
||||
room.usersWithRole { role -> role is RoomMember.Role.Owner }
|
||||
} else {
|
||||
emptyFlow()
|
||||
flowOf(persistentListOf())
|
||||
}
|
||||
combine(
|
||||
owners,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue