feat(chat): 유저 크리에이터 DM을 추가한다
This commit is contained in:
@@ -2,6 +2,7 @@ import Foundation
|
||||
|
||||
enum AppDeepLinkAction {
|
||||
case live(roomId: Int)
|
||||
case userCreatorChat(roomId: Int)
|
||||
case content(contentId: Int)
|
||||
case series(seriesId: Int)
|
||||
case community(creatorId: Int, postId: Int?)
|
||||
@@ -57,6 +58,10 @@ enum AppDeepLinkHandler {
|
||||
AppState.shared.pushRoomId = 0
|
||||
AppState.shared.pushRoomId = roomId
|
||||
|
||||
case .userCreatorChat(let roomId):
|
||||
guard roomId > 0 else { return }
|
||||
AppState.shared.setAppStep(step: .userCreatorChatRoom(roomId: roomId))
|
||||
|
||||
case .content(let contentId):
|
||||
guard contentId > 0 else { return }
|
||||
AppState.shared.setAppStep(step: .contentDetail(contentId: contentId))
|
||||
@@ -166,6 +171,12 @@ enum AppDeepLinkHandler {
|
||||
}
|
||||
return .live(roomId: roomId)
|
||||
|
||||
case "chat":
|
||||
guard let identifier = identifier, let roomId = Int(identifier), roomId > 0 else {
|
||||
return nil
|
||||
}
|
||||
return .userCreatorChat(roomId: roomId)
|
||||
|
||||
case "content":
|
||||
guard let identifier = identifier, let contentId = Int(identifier), contentId > 0 else {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user