diff --git a/modules/notifpopups.tsx b/modules/notifpopups.tsx index 18300794..c3441a9b 100644 --- a/modules/notifpopups.tsx +++ b/modules/notifpopups.tsx @@ -148,7 +148,8 @@ export default () => ( const notification = notifd.get_notification(id); const popup = () as NotifPopup; - popup.connect("destroy", () => map.delete(notification.id)); + popup.connect("destroy", () => map.get(notification.id) === popup && map.delete(notification.id)); + map.get(notification.id)?.destroyWithAnims(); map.set(notification.id, popup); self.add(