notifications: Loop, don't handle only one notification
I guess this was broken in some previous refactoring...
This commit is contained in:
parent
61806f270f
commit
324b2daf65
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ impl Notifications {
|
|||
};
|
||||
let _ = notifications.inner().connection.set(connection.clone());
|
||||
|
||||
if let Some(event) = receiver.next().await {
|
||||
while let Some(event) = receiver.next().await {
|
||||
match event {
|
||||
Event::NotificationReceived(id) => {
|
||||
notifications.emit_by_name::<()>("notification-received", &[&id]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue