Fix clicking on bridge contact opening bridge bot in encrypted chats

Change-Id: I8749244f393639740885c7086a18cd127274baa7
This commit is contained in:
SpiritCroc 2022-12-30 18:18:06 +01:00
parent 98fcd0db7b
commit 141b46dfc3
1 changed files with 2 additions and 2 deletions

View File

@ -189,9 +189,9 @@ class MessageInformationDataFactory @Inject constructor(
}
private fun getSenderId(event: TimelineEvent) = if (event.isEncrypted()) {
event.root.toValidDecryptedEvent()?.let {
event.root.senderId ?: event.root.toValidDecryptedEvent()?.let {
session.cryptoService().deviceWithIdentityKey(it.cryptoSenderKey, it.algorithm)?.userId
} ?: event.root.senderId.orEmpty()
}.orEmpty()
} else {
event.root.senderId.orEmpty()
}