Remove ifdefs for E2EE

This commit is contained in:
Tobias Fella
2023-08-07 22:38:25 +02:00
committed by Carl Schwan
parent 3ab04583ae
commit 67453d9fb8
11 changed files with 2 additions and 30 deletions

View File

@@ -865,13 +865,11 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
}
if (role == VerifiedRole) {
#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().toLatin1());
}
#endif
return false;
}