mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix compilation issue with compose compiler 1.5.7
This commit is contained in:
committed by
Benoit Marty
parent
6ae5d7af1c
commit
4f9fc2cfcf
+7
-9
@@ -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) }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user