diff --git a/be1-go/inbox/mod.go b/be1-go/inbox/mod.go index 4079671be6..e51cd43e44 100644 --- a/be1-go/inbox/mod.go +++ b/be1-go/inbox/mod.go @@ -40,7 +40,7 @@ func NewInbox(channelID string) *Inbox { func (i *Inbox) AddWitnessSignature(messageID string, public string, signature string) { i.mutex.Lock() defer i.mutex.Unlock() - msg, ok := i.GetMessage(messageID) + msg, ok := i.msgsMap[messageID] if !ok { // Add the signature to the pending signatures i.pendingSignatures[messageID] = append(i.pendingSignatures[messageID], message.WitnessSignature{ @@ -48,7 +48,7 @@ func (i *Inbox) AddWitnessSignature(messageID string, public string, signature s Signature: signature, }) } else { - msg.WitnessSignatures = append(msg.WitnessSignatures, message.WitnessSignature{ + msg.message.WitnessSignatures = append(msg.message.WitnessSignatures, message.WitnessSignature{ Witness: public, Signature: signature, })