Add comment

This commit is contained in:
Benoit Marty 2021-03-25 14:57:32 +01:00 committed by Benoit Marty
parent 4a0a6e9f01
commit f0f66cbd0e

View file

@ -408,6 +408,7 @@ internal class RoomSyncHandler @Inject constructor(private val readReceiptHandle
private fun decryptIfNeeded(event: Event, roomId: String) {
try {
// Event from sync does not have roomId, so add it to the event first
val result = cryptoService.decryptEvent(event.copy(roomId = roomId), "")
event.mxDecryptionResult = OlmDecryptionResult(
payload = result.clearEvent,