💥 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 {
|
||||
this.#history.reverse().map((notif) => {
|
||||
this.#history.pop()
|
||||
const hist = this.#history.reverse();
|
||||
hist.map((notif) => {
|
||||
this.#history = this.history.filter((n) => n.id !== notif.id);
|
||||
this.emit("history-removed", notif.id);
|
||||
this.notify("history");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user