Fix encryption indicator
This commit is contained in:
parent
56ea89aa11
commit
a5dda86a6c
@ -353,9 +353,12 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
|
|||||||
return qml_mtx_events::Received;
|
return qml_mtx_events::Received;
|
||||||
}
|
}
|
||||||
case IsEncrypted: {
|
case IsEncrypted: {
|
||||||
// return std::holds_alternative<
|
auto id = event_id(event);
|
||||||
// mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(events[id]);
|
auto encrypted_event = events.event(id, id, false);
|
||||||
return false;
|
return encrypted_event &&
|
||||||
|
std::holds_alternative<
|
||||||
|
mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(
|
||||||
|
*encrypted_event);
|
||||||
}
|
}
|
||||||
case IsRoomEncrypted: {
|
case IsRoomEncrypted: {
|
||||||
return cache::isRoomEncrypted(room_id_.toStdString());
|
return cache::isRoomEncrypted(room_id_.toStdString());
|
||||||
|
Loading…
Reference in New Issue
Block a user