it never ends.

This commit is contained in:
fiatjaf
2025-04-16 02:59:47 -03:00
parent cb0dd45a32
commit 5b8954461f
53 changed files with 396 additions and 673 deletions

View File

@@ -11,7 +11,7 @@ type Role struct {
Description string
}
type KindRange []int
type KindRange []uint16
var ModerationEventKinds = KindRange{
nostr.KindSimpleGroupPutUser,
@@ -30,7 +30,7 @@ var MetadataEventKinds = KindRange{
nostr.KindSimpleGroupRoles,
}
func (kr KindRange) Includes(kind int) bool {
func (kr KindRange) Includes(kind uint16) bool {
_, ok := slices.BinarySearch(kr, kind)
return ok
}