Michal Iskierko 6d31343205 feat: Waku v2 bridge
Issue #12610
2024-02-22 17:07:59 +01:00

21 lines
352 B
Go

package requests
import (
"errors"
)
var ErrDeactivateChatInvalidID = errors.New("deactivate-chat: invalid id")
type DeactivateChat struct {
ID string `json:"id"`
PreserveHistory bool `json:"preserveHistory"`
}
func (j *DeactivateChat) Validate() error {
if len(j.ID) == 0 {
return ErrDeactivateChatInvalidID
}
return nil
}