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, ...@@ -87,6 +87,7 @@ func buildMessage(messageID, parentID, text []byte, pubKey ed25519.PublicKey,
ConversationPubKey: pubKey, ConversationPubKey: pubKey,
ParentMessageID: parentID, ParentMessageID: parentID,
Timestamp: timestamp, Timestamp: timestamp,
SenderPubKey: pubKey[:],
Status: uint8(status), Status: uint8(status),
Text: text, Text: text,
Type: uint16(mType), Type: uint16(mType),
......
...@@ -45,6 +45,7 @@ type Message struct { ...@@ -45,6 +45,7 @@ type Message struct {
ConversationPubKey []byte `json:"conversation_pub_key"` // Index ConversationPubKey []byte `json:"conversation_pub_key"` // Index
ParentMessageID []byte `json:"parent_message_id"` // Index ParentMessageID []byte `json:"parent_message_id"` // Index
Timestamp time.Time `json:"timestamp"` // Index Timestamp time.Time `json:"timestamp"` // Index
SenderPubKey []byte `json:"sender_pub_key"`
Status uint8 `json:"status"` Status uint8 `json:"status"`
Text []byte `json:"text"` Text []byte `json:"text"`
Type uint16 `json:"type"` Type uint16 `json:"type"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment