Revert some changes; make poller respect deleteAfter pref

This commit is contained in:
binwiederhier
2026-01-08 11:19:53 -05:00
parent 75abf2e245
commit 239959e2a4
3 changed files with 24 additions and 41 deletions

View File

@@ -240,22 +240,12 @@ const NotificationItem = (props) => {
const otherTags = unmatchedTags(notification.tags);
const tags = otherTags.length > 0 ? otherTags.join(", ") : null;
const handleDelete = async () => {
if (notification.sid) {
console.log(`[Notifications] Deleting all notifications with sid ${notification.sid}`);
await subscriptionManager.deleteNotificationBySid(notification.subscriptionId, notification.sid);
} else {
console.log(`[Notifications] Deleting notification ${notification.id}`);
await subscriptionManager.deleteNotification(notification.id);
}
console.log(`[Notifications] Deleting notification ${notification.id}`);
await subscriptionManager.deleteNotification(notification.id);
};
const handleMarkRead = async () => {
if (notification.sid) {
console.log(`[Notifications] Marking notification with sid ${notification.sid} as read`);
await subscriptionManager.markNotificationReadBySid(notification.subscriptionId, notification.sid);
} else {
console.log(`[Notifications] Marking notification ${notification.id} as read`);
await subscriptionManager.markNotificationRead(notification.id);
}
console.log(`[Notifications] Marking notification ${notification.id} as read`);
await subscriptionManager.markNotificationRead(notification.id);
};
const handleCopy = (s) => {
copyToClipboard(s);