Skip to content

Commit

Permalink
fix: add catch to listBatchDecryptedMessages method
Browse files Browse the repository at this point in the history
  • Loading branch information
kele-leanes committed Jan 24, 2024
1 parent 1a1e055 commit 2c918ec
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,13 @@ data class Conversations(
Log.d(TAG, "discarding message, unknown conversation $envelope")
return@mapNotNull null
}
val msg = conversation.decrypt(envelope)
msg
try {
val msg = conversation.decrypt(envelope)
msg
} catch (e: Exception) {
Log.e(TAG, "Error decrypting message: $envelope", e)
null
}
}
},
)
Expand Down

0 comments on commit 2c918ec

Please sign in to comment.