fix: don't send notif when a user you've blocked likes your post
fix: don't allow users you've blocked to add you to a chat
This commit is contained in:
parent
e727de9c63
commit
2fa5a4dc1f
2 changed files with 28 additions and 9 deletions
|
@ -130,6 +130,18 @@ impl DataManager {
|
|||
return Err(Error::NotAllowed);
|
||||
}
|
||||
}
|
||||
// check members
|
||||
else {
|
||||
for member in &data.members {
|
||||
if self
|
||||
.get_userblock_by_initiator_receiver(member.to_owned(), data.owner)
|
||||
.await
|
||||
.is_ok()
|
||||
{
|
||||
return Err(Error::NotAllowed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ...
|
||||
let conn = match self.connect().await {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue