Skip to content

Commit 8ce9ecc

Browse files
committed
Merge branch '#284-푸시알림구현'
2 parents c951c82 + ae944ee commit 8ce9ecc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Terning-iOS/Terning-iOS/Domain/Entities/Home/UserProfileInfoModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public struct UserProfileInfoModel: Codable {
1111
var name: String
1212
var profileImage: String
1313
var authType: String
14+
var pushStatus: String?
1415
}
1516

1617
extension UserProfileInfoModel {

Terning-iOS/Terning-iOS/Presentation/MyPage/ViewModel/MyPageViewModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ extension MyPageViewModel {
161161
let updatedUserInfo = UserProfileInfoModel(
162162
name: data.name,
163163
profileImage: data.profileImage,
164-
authType: data.authType
164+
authType: data.authType,
165+
pushStatus: data.pushStatus ?? "false"
165166
)
166167
self.userInfoRelay.accept(updatedUserInfo)
167168
UserManager.shared.userName = data.name
169+
UserManager.shared.isPushEnabled = data.pushStatus == "true"
168170

169171
var updatedSections = self.sectionsRelay.value
170172
updatedSections[0] = SectionData(

0 commit comments

Comments
 (0)