double ratchet key persitence bugfix
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -44,6 +44,10 @@ func ProcessOutboundTextMessage(peer *Peer, text string, srv *Server) ([]byte, e
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Persist peer to save updated DR state (DrStateJson)
|
||||
if peer.DrRootKey != "" {
|
||||
GetConfig().GetIdentity().Peers.StorePeer(peer)
|
||||
}
|
||||
// Creating Server message for transporting the user message
|
||||
toServerMessage := srv.BuildToServerMessageFromUserMessage(packedMsg)
|
||||
return srv.ProcessOutboundMessage(toServerMessage)
|
||||
|
||||
Reference in New Issue
Block a user