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:
parent
72dcd87420
commit
4c8dd027a3
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue