💥 fix(ags/scripts/notifications): clearHistory() not clearing all of the notification history
This commit is contained in:
@@ -147,8 +147,9 @@ class Notifications extends GObject.Object {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public clearHistory(): void {
|
public clearHistory(): void {
|
||||||
this.#history.reverse().map((notif) => {
|
const hist = this.#history.reverse();
|
||||||
this.#history.pop()
|
hist.map((notif) => {
|
||||||
|
this.#history = this.history.filter((n) => n.id !== notif.id);
|
||||||
this.emit("history-removed", notif.id);
|
this.emit("history-removed", notif.id);
|
||||||
this.notify("history");
|
this.notify("history");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user