Fix join/leave

This commit is contained in:
Jon Staab
2025-10-27 14:12:50 -07:00
parent 570b5ea073
commit 772c08cf8b
+2 -2
View File
@@ -479,10 +479,10 @@ func (instance *Instance) OnEventSaved(ctx context.Context, event nostr.Event) {
func (instance *Instance) OnEphemeralEvent(ctx context.Context, event nostr.Event) { func (instance *Instance) OnEphemeralEvent(ctx context.Context, event nostr.Event) {
if event.Kind == RELAY_JOIN { if event.Kind == RELAY_JOIN {
instance.Management.AllowPubkey(event.PubKey) instance.Management.AddMember(event.PubKey)
} }
if event.Kind == RELAY_LEAVE { if event.Kind == RELAY_LEAVE {
instance.Management.BanPubkey(event.PubKey, "exited relay") instance.Management.RemoveMember(event.PubKey)
} }
} }