This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit d65f58cd8773dd23d26d276e50630f6775cadd81
Author: Benoit Tellier <[email protected]>
AuthorDate: Thu Oct 28 11:00:33 2021 +0700

    JAMES-3539 PushRequest topic and urgency should be optional
---
 .../scala/org/apache/james/jmap/pushsubscription/PushRequest.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/PushRequest.scala
 
b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/PushRequest.scala
index 511c68c..e7d9ab7 100644
--- 
a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/PushRequest.scala
+++ 
b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/PushRequest.scala
@@ -92,6 +92,6 @@ case class PushTopicConstraint()
 case class PushTTLConstraint()
 
 case class PushRequest(ttl: PushTTL,
-                       topic: Option[PushTopic],
-                       urgency: Option[PushUrgency],
+                       topic: Option[PushTopic] = None,
+                       urgency: Option[PushUrgency] = None,
                        payload: Array[Byte])

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to