diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd29ec1..d84ef48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: - name: Create pip requirements run: | - echo "matrix-synapse" > requirements.txt + echo "matrix-synapse==v1.60.0" > requirements.txt - name: Set up Python 3.8 uses: actions/setup-python@v2 diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt index b21d56a..84d54d4 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt @@ -70,6 +70,10 @@ class NotificationFactory( smallIcon = R.drawable.ic_notification_small_icon, contentIntent = openAppIntent, groupId = GROUP_ID, + groupAlertBehavior = deviceMeta.whenPOrHigher( + block = { Notification.GROUP_ALERT_SUMMARY }, + fallback = { null } + ), isGroupSummary = true, ) } diff --git a/matrix/services/sync/src/main/kotlin/app/dapk/st/matrix/sync/internal/request/ApiSyncResponse.kt b/matrix/services/sync/src/main/kotlin/app/dapk/st/matrix/sync/internal/request/ApiSyncResponse.kt index a81db3d..80756bf 100644 --- a/matrix/services/sync/src/main/kotlin/app/dapk/st/matrix/sync/internal/request/ApiSyncResponse.kt +++ b/matrix/services/sync/src/main/kotlin/app/dapk/st/matrix/sync/internal/request/ApiSyncResponse.kt @@ -484,8 +484,8 @@ internal sealed class ApiTimelineEvent { @Serializable internal data class Info( - @SerialName("h") val height: Int, - @SerialName("w") val width: Int, + @SerialName("h") val height: Int? = null, + @SerialName("w") val width: Int? = null, ) }