fix: DismissLatestContactRequestForContact - set default request id

Issue #6395
This commit is contained in:
Michal Iskierko 2022-07-13 11:35:35 +02:00 committed by Michał Iskierko
parent ce0caa0f7f
commit a8c8604745
1 changed files with 4 additions and 0 deletions

View File

@ -857,6 +857,10 @@ func (m *Messenger) DismissLatestContactRequestForContact(ctx context.Context, r
return nil, err
}
if contactRequestID == "" {
contactRequestID = defaultContactRequestID(request.ID.String())
}
return m.DismissContactRequest(ctx, &requests.DismissContactRequest{ID: types.Hex2Bytes(contactRequestID)})
}