feat(chat): 크리에이터 DM 시작을 추가한다
This commit is contained in:
@@ -138,6 +138,19 @@ class AppState: ObservableObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func replaceCurrentAppStep(step: AppStep) {
|
||||
DispatchQueue.main.async {
|
||||
if let route = self.navigationPath.popLast() {
|
||||
self.routeStepMap.removeValue(forKey: route)
|
||||
}
|
||||
|
||||
let route = AppRoute()
|
||||
self.routeStepMap[route] = step
|
||||
self.navigationPath.append(route)
|
||||
self.appStep = step
|
||||
}
|
||||
}
|
||||
|
||||
func back() {
|
||||
DispatchQueue.main.async {
|
||||
@@ -244,6 +257,10 @@ class AppState: ObservableObject {
|
||||
pendingMainChatFilter = filter
|
||||
}
|
||||
|
||||
func requestMainChatRefresh(filter: MainChatFilter) {
|
||||
pendingMainChatFilter = filter
|
||||
}
|
||||
|
||||
func consumePendingMainChatFilter() -> MainChatFilter? {
|
||||
let filter = pendingMainChatFilter
|
||||
pendingMainChatFilter = nil
|
||||
|
||||
Reference in New Issue
Block a user