From 3c98e87a95c52bd7f0afa86940ba200880f2f433 Mon Sep 17 00:00:00 2001 From: Max Sandholm Date: Tue, 14 Feb 2023 18:00:25 +0200 Subject: [PATCH] Add field for read room ID in badge count push notification --- pushrules/pushgateway/gateway.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pushrules/pushgateway/gateway.go b/pushrules/pushgateway/gateway.go index 1070e0a9..1c7ec0e1 100644 --- a/pushrules/pushgateway/gateway.go +++ b/pushrules/pushgateway/gateway.go @@ -125,8 +125,9 @@ type PushNotification struct { Content json.RawMessage `json:"content,omitempty"` UserIsTarget bool `json:"user_is_target,omitempty"` - BeeperTTL *int `json:"com.beeper.ttl,omitempty"` - BeeperUserID id.UserID `json:"com.beeper.user_id,omitempty"` + BeeperTTL *int `json:"com.beeper.ttl,omitempty"` + BeeperUserID id.UserID `json:"com.beeper.user_id,omitempty"` + BeeperLastFullyReadRoomID id.RoomID `json:"com.beeper.last_fully_read_room_id,omitempty"` } func (pk *PushKey) Push(ctx context.Context, data *PushNotification) error {