Skip to content
Snippets Groups Projects
Commit d6912976 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Add pubkey to the message structure

parent 344faa2d
No related branches found
No related tags found
1 merge request!67fix for latest client release
......@@ -87,6 +87,7 @@ func buildMessage(messageID, parentID, text []byte, pubKey ed25519.PublicKey,
ConversationPubKey: pubKey,
ParentMessageID: parentID,
Timestamp: timestamp,
SenderPubKey: pubKey[:],
Status: uint8(status),
Text: text,
Type: uint16(mType),
......
......@@ -45,6 +45,7 @@ type Message struct {
ConversationPubKey []byte `json:"conversation_pub_key"` // Index
ParentMessageID []byte `json:"parent_message_id"` // Index
Timestamp time.Time `json:"timestamp"` // Index
SenderPubKey []byte `json:"sender_pub_key"`
Status uint8 `json:"status"`
Text []byte `json:"text"`
Type uint16 `json:"type"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment