dm-hook: fix missing notification on DM invite
Fixes urbit/landscape#1117
?> =(1 ~(wyt by nodes))
=/ ship-screen (~(get ju screened) src.bowl)
=. ship-screen (~(uni in ship-screen) (normalize-incoming nodes))
+ =/ should-notify=? !(~(has by screened) src.bowl)
=. screened (~(put by screened) src.bowl ship-screen)
:_ state
=/ =action:hook
[%pendings ~(key by screened)]
:- (fact:io dm-hook-action+!>(action) ~[/updates])
- ?: (~(has by screened) src.bowl) ~
+ ?. should-notify ~
(notify-pending src.bowl)^~
::
++ dm-exists
