mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 12:06:53 +00:00
Allow PushNotification data to be any type of object
This commit is contained in:
1 parent
848c457bbe
commit
539a84d0d0
2 files changed
+2
-2
No files matched your search
@@ -91,7 +91,7 @@ public class FcmSender implements PushNotificationSender {
|
||||
case RATE_LIMIT_CHALLENGE -> "rateLimitChallenge";
|
||||
};
|
||||
|
||||
builder.putData(key, pushNotification.data() != null ? pushNotification.data() : "");
|
||||
builder.putData(key, pushNotification.data() != null ? pushNotification.data().toString() : "");
|
||||
|
||||
final Timer.Sample sample = Timer.start();
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import javax.annotation.Nullable;
|
||||
public record PushNotification(String deviceToken,
|
||||
TokenType tokenType,
|
||||
NotificationType notificationType,
|
||||
@Nullable String data,
|
||||
@Nullable Object data,
|
||||
@Nullable Account destination,
|
||||
@Nullable Device destinationDevice,
|
||||
boolean urgent) {
|
||||
|
||||
Reference in new issue
Block a user