notifications: Loop, don't handle only one notification

I guess this was broken in some previous refactoring...
This commit is contained in:
Ian Douglas Scott 2022-07-28 13:13:28 -07:00
parent 61806f270f
commit 324b2daf65

View file

@ -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]);