feat(live): 라이브룸 게스트 상단에 팔로우 버튼과 알림 옵션을 추가한다

This commit is contained in:
Yu Sung
2026-03-05 10:55:55 +09:00
parent f0763d75c2
commit ca565a2b5f
4 changed files with 84 additions and 2 deletions

View File

@@ -1278,7 +1278,12 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
.store(in: &subscription)
}
func creatorFollow(creatorId: Int? = nil, isGetUserProfile: Bool = false) {
func creatorFollow(
creatorId: Int? = nil,
follow: Bool = true,
notify: Bool = true,
isGetUserProfile: Bool = false
) {
var userId = 0
if let creatorId = creatorId {
@@ -1290,7 +1295,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
if userId > 0 {
isLoading = true
userRepository.creatorFollow(creatorId: userId)
userRepository.creatorFollow(creatorId: userId, follow: follow, notify: notify)
.sink { result in
switch result {
case .finished: