Skip to content

Commit

Permalink
Merge pull request #4369 from tloncorp/mp/improve-lure-logs
Browse files Browse the repository at this point in the history
grouper: don't send a group invite for personal lure bites
  • Loading branch information
mikolajpp authored Jan 27, 2025
2 parents 560d89e + 71e4be9 commit 02a2954
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions desk/app/grouper.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@
~[leaf+"{<joiner.bite>} invited to DM"]
(snoc [dez caz] [%pass wir %agent dock %poke cage])
::
=+ invite-type=(~(get by fields.metadata.bite) 'inviteType')
::
:: don't send group invite if this is a personal bite
?: &(?=(^ invite-type) =('user' u.invite-type)) ~
::
=* group-event 'Group Invite Fail'
?~ group=(~(get by fields.metadata.bite) 'group')
:_ ~
Expand Down

0 comments on commit 02a2954

Please sign in to comment.