mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-12 03:28:20 +08:00
[fix] enable web file browsing across control transports, refs #135
This commit is contained in:
1 parent
ec2c5485a2
commit
b2817d0adc
4 files changed
+15
-11
No files matched your search
@@ -151,7 +151,8 @@ void PeerEventHandler::OnReceiveDataBuffer(
|
||||
source_id == runtime->clipboard_label_ ||
|
||||
source_id == web_clipboard::kStream))
|
||||
return;
|
||||
if (source_id == runtime->control_data_label_ &&
|
||||
// MiniRTC reports the browser's reliable control channel as data-stream.
|
||||
if ((source_id == runtime->control_data_label_ || source_id == kWebControlStream) &&
|
||||
runtime->transfers_.HandleBrowser(data, size, handler, remote_id)) return;
|
||||
if (source_id == web_clipboard::kStream) {
|
||||
runtime->clipboard_.ReceiveWeb(
|
||||
@@ -463,7 +464,7 @@ void PeerEventHandler::OnReceiveDataBuffer(
|
||||
}
|
||||
|
||||
if (remote_action.type == ControlType::host_infomation) {
|
||||
if (source_id == runtime->control_data_label_) {
|
||||
if (source_id == runtime->control_data_label_ || source_id == kWebControlStream) {
|
||||
runtime->transfers_.SetBrowserSupport(handler, remote_id,
|
||||
remote_action.i.supports_file_browser);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user