From 06947686e72b750d859b1715564b22c6e1b063c6 Mon Sep 17 00:00:00 2001 From: Jaesung Lee Date: Thu, 9 Mar 2023 23:51:14 +0900 Subject: [PATCH] [FIX] Fixed bug on `MessageDateView/date` --- Sources/ChatUI/ChatInChannel/MessageDateView.swift | 2 +- Sources/ChatUI/ChatInChannel/MessageList.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ChatUI/ChatInChannel/MessageDateView.swift b/Sources/ChatUI/ChatInChannel/MessageDateView.swift index f907464..16f2297 100644 --- a/Sources/ChatUI/ChatInChannel/MessageDateView.swift +++ b/Sources/ChatUI/ChatInChannel/MessageDateView.swift @@ -21,7 +21,7 @@ public struct MessageDateView: View { } public init(message: MessageType) { - self.date = Date(timeIntervalSince1970: message.sentAt / 1000) + self.date = Date(timeIntervalSince1970: message.sentAt) } } diff --git a/Sources/ChatUI/ChatInChannel/MessageList.swift b/Sources/ChatUI/ChatInChannel/MessageList.swift index 597488c..282d2a7 100644 --- a/Sources/ChatUI/ChatInChannel/MessageList.swift +++ b/Sources/ChatUI/ChatInChannel/MessageList.swift @@ -146,7 +146,7 @@ public struct MessageList