mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
Add nil check for DirectMessageProtocol object
This commit is contained in:
parent
268c8304a1
commit
ea95ce2d4b
@ -477,6 +477,7 @@ func (p *Protocol) HandleMessage(
|
||||
if dmProtocol == nil {
|
||||
dmProtocol = encryptedMessage[noInstallationID]
|
||||
}
|
||||
if dmProtocol != nil {
|
||||
hrHeader := dmProtocol.HRHeader
|
||||
if hrHeader != nil && hrHeader.SeqNo == 0 {
|
||||
// Payload contains hash ratchet key
|
||||
@ -485,6 +486,7 @@ func (p *Protocol) HandleMessage(
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bundles := protocolMessage.GetBundles()
|
||||
version := getProtocolVersion(bundles, protocolMessage.GetInstallationId())
|
||||
|
Loading…
x
Reference in New Issue
Block a user