1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-19 03:18:46 +00:00

Can delete all the notifications related with a user

This commit is contained in:
2021-01-21 18:49:15 +01:00
parent 5a704f5c59
commit 6518ff5be8
3 changed files with 20 additions and 1 deletions

View File

@@ -216,6 +216,11 @@ impl PartialNotification {
self
}
pub fn set_from_user_id(mut self, id: &UserID) -> PartialNotification {
self.from_user_id = Some(id.clone());
self
}
pub fn set_on_elem_id(mut self, id: u64) -> PartialNotification {
self.on_elem_id = Some(id);
self