diff --git a/indexedDb/impl/dm/implementation.go b/indexedDb/impl/dm/implementation.go index 423c4b4867090a528a73b4078d96d9f1285a86b9..ca355ce4c0f5e186d56c403a9e359cf99b8cfd04 100644 --- a/indexedDb/impl/dm/implementation.go +++ b/indexedDb/impl/dm/implementation.go @@ -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), diff --git a/indexedDb/impl/dm/model.go b/indexedDb/impl/dm/model.go index 191326d56a3e8ef49c3bb1ce2e02e4559a1e339b..96250e0302de59cdbd8c6a816bbdd42403de06bc 100644 --- a/indexedDb/impl/dm/model.go +++ b/indexedDb/impl/dm/model.go @@ -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"`