crypto/sql_store: fix a couple places where the error value is unused

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
pull/217/head
Sumner Evans 2024-05-14 10:32:11 -06:00
parent d10103dcf5
commit 0439180737
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -331,6 +331,9 @@ func (store *SQLCryptoStore) GetGroupSession(ctx context.Context, roomID id.Room
}
}
igs, chains, rs, err := store.postScanInboundGroupSession(sessionBytes, ratchetSafetyBytes, forwardingChains.String)
if err != nil {
return nil, err
}
if senderKey == "" {
senderKey = id.Curve25519(senderKeyDB.String)
}
@ -479,6 +482,9 @@ func (store *SQLCryptoStore) scanInboundGroupSession(rows dbutil.Scannable) (*In
return nil, err
}
igs, chains, rs, err := store.postScanInboundGroupSession(sessionBytes, ratchetSafetyBytes, forwardingChains.String)
if err != nil {
return nil, err
}
return &InboundGroupSession{
Internal: *igs,
SigningKey: id.Ed25519(signingKey.String),