Add iOS message date grouping

This commit is contained in:
Mikhail Kilin
2026-05-21 15:45:48 +03:00
parent da41e1ed91
commit 508db79c34
5 changed files with 117 additions and 7 deletions

View File

@@ -96,6 +96,7 @@ public struct Message: Identifiable, Equatable, Sendable {
public var chatId: Int64
public var senderName: String
public var text: String
public var date: Int32
public var isOutgoing: Bool
public var isRead: Bool
public var editDate: Int32?
@@ -108,6 +109,7 @@ public struct Message: Identifiable, Equatable, Sendable {
chatId: Int64,
senderName: String,
text: String,
date: Int32 = 0,
isOutgoing: Bool,
isRead: Bool = true,
editDate: Int32? = nil,
@@ -119,6 +121,7 @@ public struct Message: Identifiable, Equatable, Sendable {
self.chatId = chatId
self.senderName = senderName
self.text = text
self.date = date
self.isOutgoing = isOutgoing
self.isRead = isRead
self.editDate = editDate