diff options
Diffstat (limited to 'src/timeline/EventStore.cpp')
-rw-r--r-- | src/timeline/EventStore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp index 04e548f0..de109b1a 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp @@ -509,8 +509,7 @@ EventStore::handleSync(const mtx::responses::Timeline &events) std::get_if<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(&event)) { auto d_event = decryptEvent({room_id_, encrypted->event_id}, *encrypted); if (d_event->event && - std::visit([](auto e) { return (e.sender != utils::localUser().toStdString()); }, - *d_event->event)) { + mtx::accessors::sender(*d_event->event) != utils::localUser().toStdString()) { handle_room_verification(this, *d_event->event); } } |