Skip to content

Commit 09ccbda

Browse files
committed
server: allow self nudge notifications
1 parent c9ca446 commit 09ccbda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/functions/messages.sendMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ async function sendNotifications(input: SendPushForMsgInput) {
705705
// TODO: send to users who have it set to All immediately
706706
// Handle DMs and threads
707707
for (let userId of updateGroup.userIds) {
708-
if (userId === currentUserId) {
709-
// Don't send push notifications to yourself
708+
if (userId === currentUserId && !isNudge) {
709+
// Don't send push notifications to yourself unless it's a nudge.
710710
continue
711711
}
712712

0 commit comments

Comments
 (0)