Remove collapse_key from android fcm request
All checks were successful
Build Docker and Deploy / Build Docker Container (push) Successful in 2m6s
Build Docker and Deploy / Deploy to Server (push) Successful in 7s

This commit is contained in:
Mike Schwörer 2024-06-03 17:58:55 +02:00
parent ac299ec7ba
commit 3bae320e07
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 3 additions and 3 deletions

View File

@ -36,4 +36,5 @@
- [ ] Disable compat | remove code
- [x] compat message title
- [ ] ...
- [ ] ...
- [ ] RWLock directly in go - prevent/reduce db-locked exception

View File

@ -67,8 +67,7 @@ func (fb FirebaseConnector) SendNotification(ctx context.Context, user models.Us
jsonBody["apns"] = gin.H{}
} else if client.Type == models.ClientTypeAndroid {
jsonBody["android"] = gin.H{
"priority": "high",
"collapse_key": msg.ChannelID.String(),
"priority": "high",
"notification": gin.H{
"event_time": msg.Timestamp().Format(time.RFC3339),
"title": msg.FormatNotificationTitle(user, channel),