From fc3f4ce99b813b57e1a81cf053242ccd17ab13d8 Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 8 Dec 2022 21:31:12 -0500 Subject: [PATCH] Add datatypes to createHeaderMemo comments --- src/chatmodel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index d30ebb1..d3b41ba 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -380,13 +380,13 @@ 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; // header number - h["v"] = version; // HushChat version - h["z"] = zaddr; // zaddr to respond to - h["cid"] = cid; // conversation id - h["t"] = type; // Memo or incoming contact request - h["e"] = headerbytes; // libsodium headerbytes - h["p"] = publickey; // libsodium public key + h["h"] = headerNumber; // integer, header number + h["v"] = version; // integer, HushChat version + h["z"] = zaddr; // string, zaddr to respond to + h["cid"] = cid; // string, conversation id + 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 j.setObject(h); header = j.toJson();