1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3628 Push | Json error fix (#2434)

This commit is contained in:
Konstantin Ivanov 2025-05-22 13:45:27 +02:00 committed by GitHub
parent 98b0bcc91c
commit 5e94be2acc
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ class AnytypePushService : FirebaseMessagingService() {
// Build the notification
val notification = NotificationCompat.Builder(this, CHANNEL_ID)
//.setSmallIcon(R.drawable.ic_push_icon)
.setSmallIcon(R.drawable.ic_app_notification)
.setContentTitle(message.spaceName.trim())
.setSubText(message.senderName.trim())
.setContentText(message.text.trim())

View file

@ -49,7 +49,7 @@ class DecryptionPushContentServiceImpl @Inject constructor(
// Parse the decrypted JSON
try {
Json.decodeFromStream<DecryptedPushContent>(decryptedData.inputStream())
Json { ignoreUnknownKeys = true }.decodeFromStream<DecryptedPushContent>(decryptedData.inputStream())
} catch (e: Exception) {
Timber.e(e, "Failed to parse decrypted data for keyId: $keyId")
null