mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-08-31 00:10:30 +00:00
fix: apparently there is a better way, 53.
Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
@@ -548,8 +548,8 @@ impl Message {
|
||||
.collect();
|
||||
|
||||
if !foreign.is_empty() {
|
||||
if let MessageAuthor::User(user) = &author {
|
||||
let owned_user: User = (*user).clone().into();
|
||||
if let MessageAuthor::User(user) = author {
|
||||
let owned_user: User = user.clone().into();
|
||||
let mut query = DatabasePermissionQuery::new(db, &owned_user).channel(&channel);
|
||||
let perms = calculate_channel_permissions(&mut query).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user