From fb5d7bd209da64efba47553185e2288fbed80afe Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 11 Nov 2024 14:11:33 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9B=84=EC=9B=90=20=ED=9E=88=EC=8A=A4?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=20-=20=EB=82=B4=20=ED=9B=84=EC=9B=90?= =?UTF-8?q?=EA=B3=BC=20=EB=8B=A4=EB=A5=B8=20=EC=82=AC=EB=9E=8C=EC=9D=98=20?= =?UTF-8?q?=ED=9B=84=EC=9B=90=20=EB=B0=B0=EA=B2=BD=EC=83=89=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC=20(59548f)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Room/Dialog/LiveRoomDonationMessageItemView.swift | 8 +++++++- SodaLive/Sources/Live/Room/LiveRoomDonationMessage.swift | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Live/Room/Dialog/LiveRoomDonationMessageItemView.swift b/SodaLive/Sources/Live/Room/Dialog/LiveRoomDonationMessageItemView.swift index c3ae997..0ceadb4 100644 --- a/SodaLive/Sources/Live/Room/Dialog/LiveRoomDonationMessageItemView.swift +++ b/SodaLive/Sources/Live/Room/Dialog/LiveRoomDonationMessageItemView.swift @@ -41,7 +41,11 @@ struct LiveRoomDonationMessageItemView: View { } } .padding(13.3) - .background(message.canMessage.trimmingCharacters(in: .whitespaces).isEmpty ? Color(hex: "c25264").opacity(0.8) : Color.gray33) + .background( + message.canMessage.trimmingCharacters(in: .whitespaces).isEmpty ? Color(hex: "c25264").opacity(0.8) : + message.memberId == UserDefaults.int(forKey: .userId) ? Color(hex: "59548F") : + Color.gray33 + ) .cornerRadius(5.3) } } @@ -50,6 +54,7 @@ struct LiveRoomDonationMessageItemView: View { LiveRoomDonationMessageItemView( message: LiveRoomDonationMessage( uuid: "", + memberId: 3, nickname: "유저2님이", canMessage: "10캔을 후원하셨습니다", donationMessage: "ㅅㅅㅅ" @@ -63,6 +68,7 @@ struct LiveRoomDonationMessageItemView: View { LiveRoomDonationMessageItemView( message: LiveRoomDonationMessage( uuid: "", + memberId: 3, nickname: "유저2님의 룰렛 결과?", canMessage: "", donationMessage: "[테스트] 당첨!" diff --git a/SodaLive/Sources/Live/Room/LiveRoomDonationMessage.swift b/SodaLive/Sources/Live/Room/LiveRoomDonationMessage.swift index 60cad92..12d5b7d 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomDonationMessage.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomDonationMessage.swift @@ -9,6 +9,7 @@ import Foundation struct LiveRoomDonationMessage: Decodable { let uuid: String + let memberId: Int let nickname: String let canMessage: String let donationMessage: String