Check the captured channel in the core before sending chat

This commit is contained in:
omar committed 2026-11-26 19:54:47 +03:00
1 parent 2ba2e8dda4
commit 08647b6830
11 files changed
+59 -27

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ async fn native_requests_validate_before_session_dispatch() {
let profile = Profile::new();
let (core, _events) = spawn(profile.config(1)).unwrap();
let error = core.request(Command::SendText { target: TextTarget::Client, client_id: None,
expected_client_uid: None, message: "private".into() }).await.unwrap_err();
expected_client_uid: None, expected_channel_id: None, message: "private".into() }).await.unwrap_err();
assert_eq!(error.code, ErrorCode::BadRequest);
let error = core.request(Command::StreamSignal { stream_id: "s1".into(), client_id: 1, json: "[]".into() }).await.unwrap_err();
assert_eq!(error.code, ErrorCode::BadRequest);