mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-18 01:26:12 +00:00
wip
This commit is contained in:
@@ -170,6 +170,7 @@ struct ChatItemInfoView: View {
|
||||
}
|
||||
}
|
||||
if developerTools {
|
||||
Divider().padding(.vertical)
|
||||
infoRow("Database ID", "\(meta.itemId)")
|
||||
infoRow("Record updated at", localTimestamp(meta.updatedAt))
|
||||
let msv = infoRow("Message status", ci.meta.itemStatus.id)
|
||||
@@ -514,6 +515,11 @@ struct ChatItemInfoView: View {
|
||||
if let deleteAt = meta.itemTimed?.deleteAt {
|
||||
shareText += [String.localizedStringWithFormat(NSLocalizedString("Disappears at: %@", comment: "copied message info"), localTimestamp(deleteAt))]
|
||||
}
|
||||
if meta.msgSigned == .verified {
|
||||
shareText += [ci.chatDir.sent
|
||||
? NSLocalizedString("Signed", comment: "copied message info")
|
||||
: NSLocalizedString("Signed & verified", comment: "copied message info")]
|
||||
}
|
||||
if developerTools {
|
||||
shareText += [
|
||||
String.localizedStringWithFormat(NSLocalizedString("Database ID: %d", comment: "copied message info"), meta.itemId),
|
||||
|
||||
+7
-1
@@ -276,7 +276,10 @@ fun ChatItemInfoView(chatRh: Long?, ci: ChatItem, ciInfo: ChatItemInfo, devTools
|
||||
val signedRes = if (sent) MR.strings.info_row_signed else MR.strings.info_row_signed_verified
|
||||
InfoRow(stringResource(signedRes), "", icon = painterResource(MR.images.ic_signature))
|
||||
}
|
||||
if (devTools) {
|
||||
}
|
||||
if (devTools) {
|
||||
SectionDividerSpaced()
|
||||
SectionView {
|
||||
InfoRow(stringResource(MR.strings.info_row_database_id), ci.meta.itemId.toString())
|
||||
InfoRow(stringResource(MR.strings.info_row_updated_at), localTimestamp(ci.meta.updatedAt))
|
||||
ExpandableInfoRow(stringResource(MR.strings.info_row_message_status), jsonShort.encodeToString(ci.meta.itemStatus))
|
||||
@@ -563,6 +566,9 @@ fun itemInfoShareText(chatModel: ChatModel, ci: ChatItem, chatItemInfo: ChatItem
|
||||
if (deleteAt != null) {
|
||||
shareText.add(String.format(generalGetString(MR.strings.share_text_disappears_at), localTimestamp(deleteAt)))
|
||||
}
|
||||
if (ci.meta.msgSigned == MsgSigStatus.Verified) {
|
||||
shareText.add(generalGetString(if (sent) MR.strings.info_row_signed else MR.strings.info_row_signed_verified))
|
||||
}
|
||||
if (devTools) {
|
||||
shareText.add(String.format(generalGetString(MR.strings.share_text_database_id), meta.itemId))
|
||||
shareText.add(String.format(generalGetString(MR.strings.share_text_updated_at), meta.updatedAt))
|
||||
|
||||
Reference in New Issue
Block a user