storkit: merge 456_bug_matrix_bot_ignores_in_room_verification_requests_from_element
This commit is contained in:
@@ -13,7 +13,7 @@ use super::context::BotContext;
|
||||
use super::format::{format_startup_announcement, markdown_to_html};
|
||||
use super::history::load_history;
|
||||
use super::messages::on_room_message;
|
||||
use super::verification::on_to_device_verification_request;
|
||||
use super::verification::{on_room_verification_request, on_to_device_verification_request};
|
||||
|
||||
/// Connect to the Matrix homeserver, join all configured rooms, and start
|
||||
/// listening for messages. Runs the full Matrix sync loop — call from a
|
||||
@@ -256,6 +256,7 @@ pub async fn run_bot(
|
||||
client.add_event_handler_context(ctx);
|
||||
client.add_event_handler(on_room_message);
|
||||
client.add_event_handler(on_to_device_verification_request);
|
||||
client.add_event_handler(on_room_verification_request);
|
||||
|
||||
// Spawn the stage-transition notification listener before entering the
|
||||
// sync loop so it starts receiving watcher events immediately.
|
||||
|
||||
Reference in New Issue
Block a user