채금 시간이 설정 되지 않던 버그 수정

This commit is contained in:
Yu Sung 2023-10-15 07:28:00 +09:00
parent c78b804678
commit 115a30a7b6
1 changed files with 1 additions and 1 deletions

View File

@ -1261,6 +1261,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
private func startNoChatting() {
isNoChatting = true
remainingNoChattingTime = noChattingTime
popupContent = "\(self.getUserNicknameAndProfileUrl(accountId: liveRoomInfo!.creatorId).nickname)님이 3분간 채팅을 금지하였습니다."
isShowPopup = true
@ -1279,7 +1280,6 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
if self.remainingNoChattingTime <= 0 {
self.isNoChatting = false
self.timer?.cancel()
self.remainingNoChattingTime = self.noChattingTime
self.removeNoChatRoom()
self.popupContent = "채팅금지가 해제되었습니다."
self.isShowPopup = true