Revert some changes; make poller respect deleteAfter pref
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user