Compare commits

...
3 Commits
Author SHA1 Message Date
Paul Makles 97fef56bad fix: masquerade not being applied to mesages
fixes #153
2022-04-30 16:09:52 +01:00
Paul Makles 408743476b chore: bump quark revision 2022-04-29 17:34:01 +01:00
Paul Makles fad53ee5f0 chore: bump quark revision 2022-04-29 17:20:04 +01:00
3 changed files with 4 additions and 3 deletions
Generated
+1 -1
View File
@@ -2999,7 +2999,7 @@ dependencies = [
[[package]]
name = "revolt-quark"
version = "0.1.0"
source = "git+https://github.com/revoltchat/quark?rev=4356bcd09dc9382b1a8c0e339895682a8b096dfb#4356bcd09dc9382b1a8c0e339895682a8b096dfb"
source = "git+https://github.com/revoltchat/quark?rev=e70a32d0a0a7e401c9c493ab1e557924e28ddf8a#e70a32d0a0a7e401c9c493ab1e557924e28ddf8a"
dependencies = [
"async-recursion",
"async-std",
+1 -1
View File
@@ -64,5 +64,5 @@ schemars = "0.8.8"
rocket_okapi = { git = "https://github.com/insertish/okapi", rev = "dcf0df115596ee07a587a7a543cddf3d7944645b", features = [ "swagger" ] }
# quark
revolt-quark = { git = "https://github.com/revoltchat/quark", rev = "4356bcd09dc9382b1a8c0e339895682a8b096dfb" }
revolt-quark = { git = "https://github.com/revoltchat/quark", rev = "e70a32d0a0a7e401c9c493ab1e557924e28ddf8a" }
# revolt-quark = { path = "../quark" }
+2 -1
View File
@@ -80,6 +80,7 @@ pub async fn message_send(
id: message_id.clone(),
channel: channel.id().to_string(),
author: user.id.clone(),
masquerade: data.masquerade,
..Default::default()
};
@@ -94,7 +95,7 @@ pub async fn message_send(
}
// 2. Verify permissions for masquerade.
if data.masquerade.is_some() {
if message.masquerade.is_some() {
permissions
.throw_permission(db, Permission::Masquerade)
.await?;