Fix compilation issue with compose compiler 1.5.7
This commit is contained in:
parent
a71b0ed067
commit
88d99d6623
1 changed files with 7 additions and 9 deletions
|
|
@ -48,14 +48,12 @@ class CreateRoomRootNode @AssistedInject constructor(
|
||||||
fun onStartChatSuccess(roomId: RoomId)
|
fun onStartChatSuccess(roomId: RoomId)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val callback = object : Callback {
|
private fun onCreateNewRoom() {
|
||||||
override fun onCreateNewRoom() {
|
plugins<Callback>().forEach { it.onCreateNewRoom() }
|
||||||
plugins<Callback>().forEach { it.onCreateNewRoom() }
|
}
|
||||||
}
|
|
||||||
|
|
||||||
override fun onStartChatSuccess(roomId: RoomId) {
|
private fun onStartChatSuccess(roomId: RoomId) {
|
||||||
plugins<Callback>().forEach { it.onStartChatSuccess(roomId) }
|
plugins<Callback>().forEach { it.onStartChatSuccess(roomId) }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
|
@ -72,8 +70,8 @@ class CreateRoomRootNode @AssistedInject constructor(
|
||||||
state = state,
|
state = state,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
onClosePressed = this::navigateUp,
|
onClosePressed = this::navigateUp,
|
||||||
onNewRoomClicked = callback::onCreateNewRoom,
|
onNewRoomClicked = ::onCreateNewRoom,
|
||||||
onOpenDM = callback::onStartChatSuccess,
|
onOpenDM = ::onStartChatSuccess,
|
||||||
onInviteFriendsClicked = { invitePeople(activity) }
|
onInviteFriendsClicked = { invitePeople(activity) }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue