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:
trisua 2025-05-04 16:42:17 -04:00
parent e727de9c63
commit 2fa5a4dc1f
2 changed files with 28 additions and 9 deletions

View file

@ -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 {