Skip to content
Snippets Groups Projects
Commit df30b22d authored by Jonah Husson's avatar Jonah Husson
Browse files

Add prepend to handleMessage

parent 6d1fb031
Branches
Tags
2 merge requests!170Release,!120Add 0 byte to message contents
......@@ -54,7 +54,7 @@ func (m *Manager) handleMessage(ecrMsg format.Message, bundle Bundle, edge *edge
var relationshipFingerprint []byte
//if it exists, check against all in the list
has, forMe, _ := m.Session.GetEdge().Check(identity.Source, ecrMsg.GetIdentityFP(), ecrMsg.GetContents())
has, forMe, _ := m.Session.GetEdge().Check(identity.Source, ecrMsg.GetIdentityFP(), append([]byte{0}, ecrMsg.GetContents()...))
if !has {
jww.INFO.Printf("checking backup %v", preimage.MakeDefault(identity.Source))
//if it doesnt exist, check against the default fingerprint for the identity
......@@ -126,8 +126,6 @@ func (m *Manager) handleMessage(ecrMsg format.Message, bundle Bundle, edge *edge
return
}
// Process the decrypted/unencrypted message partition, to see if
// we get a full message
xxMsg, ok := m.partitioner.HandlePartition(sender, encTy, msg.GetContents(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment