Fix verification with new Element clients

Element stopped sending verification events as encrypted events in
encrypted rooms. I am not a fan of that, but let's just handle them for
now as well.
This commit is contained in:
Nicolas Werner 2025-08-02 21:39:59 +02:00
parent 72dcd87420
commit 4c8dd027a3
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -515,6 +515,11 @@ EventStore::handleSync(const mtx::responses::Timeline &events)
mtx::accessors::sender(*d_event->event) != utils::localUser().toStdString()) {
handle_room_verification(this, *d_event->event);
}
} else {
// workaround Element not encrypting verification events anymore
if (mtx::accessors::sender(event) != utils::localUser().toStdString()) {
handle_room_verification(this, event);
}
}
}
}