mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 19:31:09 +02:00
11 lines
343 B
Rust
11 lines
343 B
Rust
use crate::service::stream::{publish_to_stream, Error, Stream};
|
|
|
|
#[crate::export(js_name = "publishToChannelStream")]
|
|
pub fn publish(channel_id: String, user_id: String) -> Result<(), Error> {
|
|
publish_to_stream(
|
|
&Stream::Channel { channel_id },
|
|
Some("typing".to_string()),
|
|
Some(format!("\"{}\"", user_id)),
|
|
)
|
|
}
|