no need to rebroadcast the delete event, it will be broadcasted automatically.

This commit is contained in:
fiatjaf 2024-01-18 15:52:58 -03:00
parent 158e5e59ff
commit bea02ca3ab
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -98,9 +98,6 @@ func applyModerationAction(ctx context.Context, event *nostr.Event) {
evt := group.ToMembersEvent()
evt.Sign(s.RelayPrivkey)
relay.BroadcastEvent(evt)
case nostr.KindSimpleGroupDeleteEvent:
// broadcast the actual event deletion so clients can handle it?
relay.BroadcastEvent(event)
}
}
@ -114,7 +111,7 @@ func reactToJoinRequest(ctx context.Context, event *nostr.Event) {
// immediatelly add the requester
addUser := &nostr.Event{
CreatedAt: nostr.Now(),
Kind: 9000,
Kind: nostr.KindSimpleGroupAddUser,
Tags: nostr.Tags{
nostr.Tag{"h", group.ID},
nostr.Tag{"p", event.PubKey},