feat(chat): 유저 크리에이터 DM을 추가한다

This commit is contained in:
Yu Sung
2026-07-12 04:48:17 +09:00
parent ce191539f2
commit 2dfff32ac1
23 changed files with 2410 additions and 6 deletions

View File

@@ -214,6 +214,7 @@ struct SettingsView: View {
ContentPlayManager.shared.stopAudio()
ContentPlayerPlayManager.shared.resetPlayer()
viewModel.logout {
NotificationCenter.default.post(name: .userCreatorChatSessionClose, object: nil)
self.isShowLogoutDialog = false
UserDefaults.reset()
@@ -239,6 +240,7 @@ struct SettingsView: View {
ContentPlayManager.shared.stopAudio()
ContentPlayerPlayManager.shared.resetPlayer()
viewModel.logoutAllDevice {
NotificationCenter.default.post(name: .userCreatorChatSessionClose, object: nil)
self.isShowLogoutAllDeviceDialog = false
UserDefaults.reset()
AppState.shared.isRestartApp = true

View File

@@ -44,6 +44,7 @@ final class SignOutViewModel: ObservableObject {
let decoded = try jsonDecoder.decode(ApiResponseWithoutData.self, from: responseData)
if decoded.success {
NotificationCenter.default.post(name: .userCreatorChatSessionClose, object: nil)
UserDefaults.reset()
AppState.shared.isRestartApp = true
AppState.shared.setAppStep(step: .splash)