Fix pushing useless notifications.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b24b59dc38
commit
aedaf3f0c1
1 changed files with 4 additions and 0 deletions
|
|
@ -105,6 +105,10 @@ pub(crate) async fn append_pdu(&self, pdu_id: RawPduId, pdu: &Pdu) -> Result {
|
|||
highlights.push(user.clone());
|
||||
}
|
||||
|
||||
if !notify && !highlight {
|
||||
continue;
|
||||
}
|
||||
|
||||
self.services
|
||||
.pusher
|
||||
.get_pushkeys(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue