mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core: update simplexmq (time diff calculation); core, ios: add deleteAt to chat item info (#2440)
This commit is contained in:
@@ -49,6 +49,9 @@ struct ChatItemInfoView: View {
|
||||
if !chatItemSent {
|
||||
infoRow("Received at", localTimestamp(chatItemInfo.createdAt))
|
||||
}
|
||||
if let deleteAt = chatItemInfo.deleteAt {
|
||||
infoRow("To be deleted at", localTimestamp(deleteAt))
|
||||
}
|
||||
|
||||
if !chatItemInfo.itemVersions.isEmpty {
|
||||
Divider()
|
||||
@@ -122,6 +125,9 @@ struct ChatItemInfoView: View {
|
||||
if !chatItemSent {
|
||||
shareText += "Received at: \(localTimestamp(chatItemInfo.createdAt))" + nl
|
||||
}
|
||||
if let deleteAt = chatItemInfo.deleteAt {
|
||||
shareText += "To be deleted at: \(localTimestamp(deleteAt))" + nl
|
||||
}
|
||||
if !chatItemInfo.itemVersions.isEmpty {
|
||||
shareText += nl + "Edit history" + nl + nl
|
||||
for (index, itemVersion) in chatItemInfo.itemVersions.enumerated() {
|
||||
|
||||
@@ -2954,6 +2954,7 @@ public struct ChatItemInfo: Decodable {
|
||||
public var itemTs: Date
|
||||
public var createdAt: Date
|
||||
public var updatedAt: Date
|
||||
public var deleteAt: Date?
|
||||
public var itemVersions: [ChatItemVersion]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user