storkit: merge 456_bug_matrix_bot_ignores_in_room_verification_requests_from_element

This commit is contained in:
dave
2026-04-02 11:50:37 +00:00
parent b5d825356e
commit 7003fca873
2 changed files with 100 additions and 1 deletions
+2 -1
View File
@@ -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.