feat(live): 라이브룸 게스트 상단에 팔로우 버튼과 알림 옵션을 추가한다
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user