fix(ags): fix no notif placement
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-18 13:10:25 -05:00
parent 500f3b921a
commit df73b65989

View file

@ -33,6 +33,15 @@ const NotificationList = () => Box({
visible: HasNotifs.bind(), visible: HasNotifs.bind(),
setup: (self) => { setup: (self) => {
const initNotifId = 1337;
const delay = 200;
// Fix the no notif placement with a fake notif
Notifications.Notify('', initNotifId, '', '', '', [''], {}, 0);
setTimeout(() => {
Notifications.getNotification(initNotifId)?.close();
}, delay);
self self
.hook(Notifications, (box, id) => { .hook(Notifications, (box, id) => {
// Handle cached notifs // Handle cached notifs