Message will be saved when processed by stream
This commit is contained in:
parent
4a99222990
commit
ffcf014107
|
@ -256,13 +256,6 @@ func (m *Messenger) Send(c Contact, data []byte) error {
|
|||
}
|
||||
|
||||
log.Printf("[Messenger::Send] sent message with hash %x", hash)
|
||||
|
||||
message.ID = hash
|
||||
message.SigPubKey = &m.identity.PublicKey
|
||||
_, err = m.db.SaveMessages(c, []*protocol.Message{&message})
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to save the message")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue