status-go/protocol/requests/decline_contact_request.go
Alexander 27730057d0
Support outgoing contact requests (#3120)
* Outgoing contact requests

* Test fix

* Test fix

* Fixes

* Bugfixes

* Bugfixes

* Almost there

* Removed the activity center notification

* Test update

* Almost ready

* Fixes

* Fixes
2023-02-21 19:08:11 +01:00

22 lines
384 B
Go

package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
var ErrDeclineContactRequestInvalidID = errors.New("decline-contact-request: invalid id")
type DeclineContactRequest struct {
ID types.HexBytes `json:"id"`
}
func (a *DeclineContactRequest) Validate() error {
if len(a.ID) == 0 {
return ErrDeclineContactRequestInvalidID
}
return nil
}