diff --git a/syncapi/types/types.go b/syncapi/types/types.go index 75194d3f6..a8ae18fde 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -442,6 +442,16 @@ func (r *Response) IsEmpty() bool { len(r.ToDevice.Events) == 0 } +type UnreadNotificationsResponse struct { + HighlightCount int `json:"highlight_count"` + NotificationCount int `json:"notification_count"` +} + +func NewUnreadNotificationsResponse() *UnreadNotificationsResponse { + res := UnreadNotificationsResponse{} + return &res +} + type UnreadNotifications struct { HighlightCount int `json:"highlight_count"` NotificationCount int `json:"notification_count"` @@ -518,16 +528,6 @@ func NewJoinResponse() *JoinResponse { } } -type UnreadNotificationsResponse struct { - HighlightCount int `json:"highlight_count"` - NotificationCount int `json:"notification_count"` -} - -func NewUnreadNotificationsResponse() *UnreadNotificationsResponse { - res := UnreadNotificationsResponse{} - return &res -} - // InviteResponse represents a /sync response for a room which is under the 'invite' key. type InviteResponse struct { InviteState struct {