Add some event kind constants
This commit is contained in:
+1
-1
@@ -176,5 +176,5 @@ func (instance *Instance) RejectConnection(r *http.Request) bool {
|
||||
}
|
||||
|
||||
func (instance *Instance) PreventBroadcast(ws *khatru.WebSocket, event nostr.Event) bool {
|
||||
return event.Kind == 28934
|
||||
return event.Kind == AUTH_JOIN
|
||||
}
|
||||
|
||||
@@ -6,6 +6,11 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
const (
|
||||
AUTH_JOIN = 28934
|
||||
AUTH_INVITE = 28935
|
||||
)
|
||||
|
||||
var (
|
||||
env map[string]string
|
||||
envOnce sync.Once
|
||||
|
||||
Reference in New Issue
Block a user