라이브 방

- 비밀 미션 채팅 배경색 변경
This commit is contained in:
Yu Sung
2024-11-12 02:36:21 +09:00
parent b4f99af291
commit 8b7d673942
3 changed files with 8 additions and 2 deletions

View File

@@ -495,6 +495,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
let (nickname, profileUrl) = self.getUserNicknameAndProfileUrl(accountId: UserDefaults.int(forKey: .userId))
self.messages.append(
LiveRoomDonationChat(
memberId: UserDefaults.int(forKey: .userId),
profileUrl: profileUrl,
nickname: nickname,
chat: rawMessage,
@@ -525,6 +526,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
let (nickname, profileUrl) = self.getUserNicknameAndProfileUrl(accountId: UserDefaults.int(forKey: .userId))
self.messages.append(
LiveRoomDonationChat(
memberId: UserDefaults.int(forKey: .userId),
profileUrl: profileUrl,
nickname: nickname,
chat: rawMessage,
@@ -2192,6 +2194,7 @@ extension LiveRoomViewModel: AgoraRtmDelegate {
if decoded.type == .SECRET_DONATION {
self.messages.append(
LiveRoomDonationChat(
memberId: Int(peerId)!,
profileUrl: profileUrl,
nickname: nickname,
chat: decoded.message,
@@ -2225,6 +2228,7 @@ extension LiveRoomViewModel: AgoraRtmChannelDelegate {
if decoded.type == .DONATION {
self.messages.append(
LiveRoomDonationChat(
memberId: Int(member.userId)!,
profileUrl: profileUrl,
nickname: nickname,
chat: decoded.message,