parent
fed781521d
commit
1b8ac1f27d
|
@ -195,16 +195,6 @@ struct LiveRoomViewV2: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack(alignment: .bottom, spacing: 0) {
|
|
||||||
LiveRoomInputChatView {
|
|
||||||
viewModel.sendMessage(chatMessage: $0) {
|
|
||||||
viewModel.isShowingNewChat = false
|
|
||||||
proxy.scrollTo(viewModel.messages.count - 1, anchor: .center)
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
VStack(spacing: 13.3) {
|
VStack(spacing: 13.3) {
|
||||||
if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) {
|
if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) {
|
||||||
LiveRoomRightBottomButton(
|
LiveRoomRightBottomButton(
|
||||||
|
@ -244,8 +234,15 @@ struct LiveRoomViewV2: View {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.bottom, 13.3)
|
|
||||||
.padding(.trailing, 13.3)
|
.padding(.trailing, 13.3)
|
||||||
|
|
||||||
|
LiveRoomInputChatView {
|
||||||
|
viewModel.sendMessage(chatMessage: $0) {
|
||||||
|
viewModel.isShowingNewChat = false
|
||||||
|
proxy.scrollTo(viewModel.messages.count - 1, anchor: .center)
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
.padding(.bottom, 10)
|
.padding(.bottom, 10)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue