Skip to content

Commit 772c08c

Browse files
author
Jon Staab
committed
Fix join/leave
1 parent 570b5ea commit 772c08c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zooid/instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ func (instance *Instance) OnEventSaved(ctx context.Context, event nostr.Event) {
479479

480480
func (instance *Instance) OnEphemeralEvent(ctx context.Context, event nostr.Event) {
481481
if event.Kind == RELAY_JOIN {
482-
instance.Management.AllowPubkey(event.PubKey)
482+
instance.Management.AddMember(event.PubKey)
483483
}
484484

485485
if event.Kind == RELAY_LEAVE {
486-
instance.Management.BanPubkey(event.PubKey, "exited relay")
486+
instance.Management.RemoveMember(event.PubKey)
487487
}
488488
}

0 commit comments

Comments
 (0)