diff --git a/api/authenticatedChannel.go b/api/authenticatedChannel.go index 7e98c11daab796f87285de62fc8d6fdbee45ab81..0debb583f3496b945f3601118a5940d69683a3bd 100644 --- a/api/authenticatedChannel.go +++ b/api/authenticatedChannel.go @@ -97,6 +97,10 @@ func (c *Client) MakePrecannedAuthenticatedChannel(precannedID uint) (contact.Co err := c.storage.E2e().AddPartner(precan.ID, precan.DhPubKey, c.storage.E2e().GetDHPrivateKey(), sesParam, sesParam) + // check garbled messages in case any messages arrived before creating + // the channel + c.network.CheckGarbledMessages() + return precan, err }