api: add TransportsModified event

This commit is contained in:
link2xt
2025-11-21 12:09:55 +00:00
committed by l
parent d75a78d446
commit 3a7f82c66e
4 changed files with 28 additions and 3 deletions

View File

@@ -417,6 +417,15 @@ pub enum EventType {
chat_id: ChatId,
},
/// One or more transports has changed.
///
/// This event is used for tests to detect when transport
/// synchronization messages arrives.
/// UIs don't need to use it, it is unlikely
/// that user modifies transports on multiple
/// devices simultaneously.
TransportsModified,
/// Event for using in tests, e.g. as a fence between normally generated events.
#[cfg(test)]
Test,