Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Jan 20, 2022
1 parent 0d9d510 commit 3c076e2
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,10 @@ class CryptoInfoViewModel @AssistedInject constructor(
val messageIndex = encryptedContent.ciphertext?.fromBase64()?.inputStream()?.reader()?.let {
tryOrNull {
val megolmVersion = it.read()
if (megolmVersion == 3) {
if (it.read() == 8
/** Int tag */
) {
return@let it.read()
}
}
return@let null
if (megolmVersion != 3) return@tryOrNull null
/** Int tag */
if (it.read() != 8) return@tryOrNull null
it.read()
}
}

Expand Down Expand Up @@ -157,7 +153,7 @@ class CryptoInfoViewModel @AssistedInject constructor(
try {
session.cryptoService().replyToForwardKeyRequest(action.request)
} catch (failure: Throwable) {
Timber.w("## VALR: failed to share $failure")
Timber.w("## failed to share $failure")
}
}
}
Expand Down

0 comments on commit 3c076e2

Please sign in to comment.