mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
19 lines
323 B
Go
19 lines
323 B
Go
package requests
|
|
|
|
import (
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
)
|
|
|
|
type CommunityChannelShareURL struct {
|
|
CommunityID types.HexBytes
|
|
ChannelID string
|
|
}
|
|
|
|
func (r *CommunityChannelShareURL) Validate() error {
|
|
if len(r.CommunityID) == 0 {
|
|
return ErrCheckPermissionToJoinCommunityInvalidID
|
|
}
|
|
|
|
return nil
|
|
}
|