enable rfd only on supported platforms

This commit is contained in:
2026-01-04 19:17:08 -07:00
parent ef199167cc
commit eda8c4467e
2 changed files with 19 additions and 1 deletions
+13
View File
@@ -210,6 +210,12 @@ pub fn Channel(id: ChannelId) -> Element {
)
}
#[cfg(any(
target_os = "windows",
target_os = "macos",
target_os = "linux",
target_arch = "wasm32",
))]
pub fn pick_and_send_file(net: &Coroutine<Command>) {
let channels = if let Some(user) = STATE.server.read().this_user() {
vec![user.channel]
@@ -231,6 +237,13 @@ pub fn pick_and_send_file(net: &Coroutine<Command>) {
});
});
}
#[cfg(not(any(
target_os = "windows",
target_os = "macos",
target_os = "linux",
target_arch = "wasm32",
)))]
pub fn pick_and_send_file(net: &Coroutine<Command>) {}
#[component]
pub fn ChatView() -> Element {