Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: webhook notifs should skip deleted users (#13631)

p0nya6b76344bfcc
diff --git a/backend/component/webhook/manager.go b/backend/component/webhook/manager.go
index 1ba19fa922..99dbb9a51f 100644
--- a/backend/component/webhook/manager.go
+++ b/backend/component/webhook/manager.go
@@ -226,6 +226,9 @@ func (m *Manager) getWebhookContextFromEvent(ctx context.Context, e *Event, acti
if mentionedUser[user.ID] {
continue
}
+ if user.MemberDeleted {
+ continue
+ }
mentionedUser[user.ID] = true
mentionUsers = append(mentionUsers, user)
phone, err := maybeGetPhoneFromUser(user)