mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix replies to encrypted events
This commit is contained in:
parent
001c94865c
commit
cf88499ccb
1 changed files with 5 additions and 1 deletions
|
@ -870,6 +870,10 @@ void
|
||||||
TimelineModel::replyAction(QString id)
|
TimelineModel::replyAction(QString id)
|
||||||
{
|
{
|
||||||
auto event = events.value(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(
|
RelatedInfo related = boost::apply_visitor(
|
||||||
[](const auto &ev) -> RelatedInfo {
|
[](const auto &ev) -> RelatedInfo {
|
||||||
RelatedInfo related_ = {};
|
RelatedInfo related_ = {};
|
||||||
|
|
Loading…
Reference in a new issue