Skip to content

Commit

Permalink
Always push notification
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaydimitrov committed Feb 1, 2024
1 parent 4eeccf0 commit 330b744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ func sendToSocketAndPush(message NotificationGetter, recipients map[uint64]strin
notification := message.getNotification()
pushTokens := make([]string, 0, len(recipients))
for userID, pushToken := range recipients {
pushTokens = append(pushTokens, pushToken)
clientID := models.GetUserSocketID(userID)
connections, exist := connectedUsers.Get(clientID)
if !exist {
pushTokens = append(pushTokens, pushToken)
continue
}
// TODO: If initiator, send only confirmation
Expand Down

0 comments on commit 330b744

Please sign in to comment.