patch: try fix flutter paste

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid 2023-10-23 20:17:36 +08:00
parent ce9c9078e5
commit 505b73d20e
No known key found for this signature in database
GPG Key ID: E0A5F564C51C056E
2 changed files with 4 additions and 4 deletions

View File

@ -1716,7 +1716,7 @@ impl<T: InvokeUiSession> Remote<T> {
#[cfg(any(target_os = "windows", target_os = "linux"))]
fn handle_cliprdr_msg(&self, clip: hbb_common::message_proto::Cliprdr) {
log::debug!("handling cliprdr msg from server peer");
#[cfg(feature = "flutter")]
#[cfg(all(feature = "flutter", not(target_os = "linux")))]
if let Some(hbb_common::message_proto::cliprdr::Union::FormatList(_)) = &clip.union {
if self.client_conn_id
!= clipboard::get_client_conn_id(&crate::flutter::get_cur_peer_id()).unwrap_or(0)