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:
parent
98b0bcc91c
commit
5e94be2acc
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue