fix: DismissLatestContactRequestForContact - set default request id
Issue #6395
This commit is contained in:
parent
ce0caa0f7f
commit
a8c8604745
|
@ -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)})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue