Fix replies to encrypted events

remotes/origin/0.7.0-dev
Nicolas Werner 5 years ago
parent 001c94865c
commit cf88499ccb
  1. 4
      src/timeline/TimelineModel.cpp

@ -870,6 +870,10 @@ void
TimelineModel::replyAction(QString id)
{
auto event = events.value(id);
if (auto e = boost::get<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(&event)) {
event = decryptEvent(*e).event;
}
RelatedInfo related = boost::apply_visitor(
[](const auto &ev) -> RelatedInfo {
RelatedInfo related_ = {};

Loading…
Cancel
Save