-
Notifications
You must be signed in to change notification settings - Fork 334
gundeck: Send push notifications to clients with consumable-notifications capability
#4626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The tests now fail correctly because gundeck is not sending native pushes to clients with consumable-notifications capability
…tions` capability
Also create pushes with no recipients, as that is valid too in case an event is only meant for cells.
| handlePushCass Push {..} = do | ||
| forM_ _pushRecipients $ \(Recipient uid _ cids) -> do | ||
| clients <- Set.toList . Set.unions . Map.elems . (.userClientsFull) <$> mpaGetClients (Set.singleton uid) | ||
| let consumabeNotifClients = map (.clientId) $ filter supportsConsumableNotifications clients |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let consumabeNotifClients = map (.clientId) $ filter supportsConsumableNotifications clients | |
| let consumableNotifClients = map (.clientId) $ filter supportsConsumableNotifications clients |
Typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The questions should probably be resolved before green lightening this PR. However, it's already looking pretty good.
supersven
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
https://wearezeta.atlassian.net/browse/WPB-18369
Checklist
changelog.d