diltony@yahoo.com
Jan 2, 2026 at 2:56 PM
[s]```[/s]
const channels = binding.channels;
if (channels.user) {
channels.user.bind('notification', () => {
if (app.session.user) {
app.session.user.pushAttributes({
//unreadNotificationCount: app.session.user.unreadNotificationCount() ?? 0 + 1,
unreadNotificationCount: (app.session.user.unreadNotificationCount() ?? 0) + 1,
//newNotificationCount: app.session.user.newNotificationCount() ?? 0 + 1,
newNotificationCount: (app.session.user.newNotificationCount() ?? 0) + 1,
});
}
app.notifications.clear();
m.redraw();
});
}
```});
Sign in to join the conversation
Be the first to share your thoughts on this discussion.