Fix clicking on bridge contact opening bridge bot in encrypted chats
Change-Id: I8749244f393639740885c7086a18cd127274baa7
This commit is contained in:
parent
98fcd0db7b
commit
141b46dfc3
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue