forked from jmug/stoatchat
Messaging: Add message replies.
Servers: Add VoiceChannel.
This commit is contained in:
@@ -6,6 +6,7 @@ use rocket_contrib::json::JsonValue;
|
||||
#[get("/<target>/messages/<msg>")]
|
||||
pub async fn req(user: User, target: Ref, msg: Ref) -> Result<JsonValue> {
|
||||
let channel = target.fetch_channel().await?;
|
||||
channel.has_messaging()?;
|
||||
|
||||
let perm = permissions::PermissionCalculator::new(&user)
|
||||
.with_channel(&channel)
|
||||
|
||||
Reference in New Issue
Block a user