From 31cdbc5f9eb3c7d36d1e571acbe80d9ffaf15e7f Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 8 Dec 2022 21:41:01 -0500 Subject: [PATCH] More details about header memo fields --- src/chatmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index d3b41ba..eaee84c 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -380,10 +380,10 @@ QString MainWindow::createHeaderMemo(QString type, QString cid, QString zaddr, Q QJsonObject h; // We use short keynames to use less space for metadata and so allow // the user to send more actual data in memos - h["h"] = headerNumber; // integer, header number - h["v"] = version; // integer, HushChat version + h["h"] = headerNumber; // integer, header number starting from 1 + h["v"] = version; // integer, HushChat version. currently 0 h["z"] = zaddr; // string, zaddr to respond to - h["cid"] = cid; // string, conversation id + h["cid"] = cid; // string, conversation id (UUID) h["t"] = type; // string, Memo or incoming contact request h["e"] = headerbytes; // string, hex-encoded libsodium headerbytes h["p"] = publickey; // string, hex-encoded libsodium public key