Fix build without E2EE

This commit is contained in:
Tobias Fella
2022-09-24 15:27:19 +02:00
parent 917f77152d
commit b79956871f
3 changed files with 5 additions and 0 deletions

View File

@@ -814,12 +814,14 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
if (role == VerifiedRole) {
#ifdef QUOTIENT_07
#ifdef Quotient_E2EE_ENABLED
if (evt.originalEvent()) {
auto encrypted = dynamic_cast<const EncryptedEvent *>(evt.originalEvent());
Q_ASSERT(encrypted);
return m_currentRoom->connection()->isVerifiedSession(encrypted->sessionId());
}
return false;
#endif
#endif
}