feat(chat-room) 채팅방 메시지 표시
- bottom 정렬되도록 수정
This commit is contained in:
@@ -21,30 +21,7 @@ final class ChatRoomViewModel: ObservableObject {
|
||||
|
||||
// MARK: - Message State
|
||||
@Published var messageText: String = ""
|
||||
@Published private(set) var messages: [ServerChatMessage] = [
|
||||
ServerChatMessage(
|
||||
messageId: 1,
|
||||
message: "(만약에) 멈춰 인프피",
|
||||
profileImageUrl: "",
|
||||
mine: true,
|
||||
createdAt: Date().currentTimeMillis(),
|
||||
messageType: "text",
|
||||
imageUrl: nil,
|
||||
price: nil,
|
||||
hasAccess: true
|
||||
),
|
||||
ServerChatMessage(
|
||||
messageId: 2,
|
||||
message: "(언제부턴가) 너랑 노는게 제일 재밌고\n너랑 이야기 하는게 제일 신나더라,\n앞으로도 그럴 것 같아❤️",
|
||||
profileImageUrl: "https://example.com/profile.jpg",
|
||||
mine: false,
|
||||
createdAt: Date().currentTimeMillis(),
|
||||
messageType: "text",
|
||||
imageUrl: nil,
|
||||
price: nil,
|
||||
hasAccess: true
|
||||
)
|
||||
]
|
||||
@Published private(set) var messages: [ServerChatMessage] = []
|
||||
|
||||
// MARK: - Private
|
||||
private let userRepository = UserRepository()
|
||||
|
||||
Reference in New Issue
Block a user