mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix 'test push loop back' notification check (#5541)
Include a fake client secret as the HS would do, since it's now mandatory.
This commit is contained in:
committed by
GitHub
parent
5b1bfac6ff
commit
8b169c4265
+10
-1
@@ -21,5 +21,14 @@ data class PushGatewayDevice(
|
|||||||
* Required. The pushkey given when the pusher was created.
|
* Required. The pushkey given when the pusher was created.
|
||||||
*/
|
*/
|
||||||
@SerialName("pushkey")
|
@SerialName("pushkey")
|
||||||
val pushKey: String
|
val pushKey: String,
|
||||||
|
/** Optional. Additional pusher data. */
|
||||||
|
@SerialName("data")
|
||||||
|
val data: PusherData? = null,
|
||||||
|
)
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class PusherData(
|
||||||
|
@SerialName("default_payload")
|
||||||
|
val defaultPayload: Map<String, String>,
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -20,5 +20,5 @@ data class PushGatewayNotification(
|
|||||||
* Required. This is an array of devices that the notification should be sent to.
|
* Required. This is an array of devices that the notification should be sent to.
|
||||||
*/
|
*/
|
||||||
@SerialName("devices")
|
@SerialName("devices")
|
||||||
val devices: List<PushGatewayDevice>
|
val devices: List<PushGatewayDevice>,
|
||||||
)
|
)
|
||||||
|
|||||||
+5
-2
@@ -42,9 +42,12 @@ class DefaultPushGatewayNotifyRequest(
|
|||||||
devices = listOf(
|
devices = listOf(
|
||||||
PushGatewayDevice(
|
PushGatewayDevice(
|
||||||
params.appId,
|
params.appId,
|
||||||
params.pushKey
|
params.pushKey,
|
||||||
|
PusherData(mapOf(
|
||||||
|
"cs" to "A_FAKE_SECRET",
|
||||||
|
))
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user