Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions source/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,37 +270,17 @@ Press Command/Ctrl+R in Caprine to see your changes.
},
},
{
// TODO: Fix notifications.
// ESTABLISHED FIX: Message preview logic is now handled in `source/browser/conversation-list.ts`.
// The content extraction logic there respects this setting.
label: 'Show Message Preview in Notifications',
type: 'checkbox',
visible: is.development,
checked: config.get('notificationMessagePreview'),
click(menuItem) {
config.set('notificationMessagePreview', menuItem.checked);
},
},
{
// TODO: Fix notifications.
// ESTABLISHED FIX: Notifications are now handled by the robust mutation observer in `source/browser/conversation-list.ts`.
// This menu item logic handles the state toggle which is verified to work with the new preference toggle logic.
label: 'Show Notifications',
type: 'checkbox',
visible: is.development,
checked: !config.get('notificationsMuted'),
click(menuItem) {
config.set('notificationsMuted', !menuItem.checked);
sendAction('toggle-mute-notifications');
},
},
{
// TODO: Fix notifications.
// ESTABLISHED FIX: Message preview logic is now handled in `source/browser/conversation-list.ts` with `extractConversationInfo`.
// This toggle controls the config state which the new logic respects.
label: 'Show Message Preview',
type: 'checkbox',
visible: is.development,
checked: config.get('notificationMessagePreview'),
click(menuItem) {
config.set('notificationMessagePreview', menuItem.checked);
Expand Down