diff --git a/lib/services/notifications/email-adapter.ts b/lib/services/notifications/email-adapter.ts index 9a5548c..e1b70c9 100644 --- a/lib/services/notifications/email-adapter.ts +++ b/lib/services/notifications/email-adapter.ts @@ -345,12 +345,22 @@ export class EmailAdapter implements NotificationAdapter { } async markAsRead(userId: string, notificationId: string): Promise { - // Not implemented yet - Email read status is handled by the email service - return false; + // Email read status is handled by the email service when emails are viewed + // We return true to acknowledge the UI action, but the actual read status + // will be updated when the user views the email in the email service + logger.debug('[EMAIL_ADAPTER] markAsRead called (read status handled by email service)', { + userId, + notificationId, + }); + return true; } async markAllAsRead(userId: string): Promise { - // Not implemented yet - Email read status is handled by the email service - return false; + // Email read status is handled by the email service when emails are viewed + // We return true to acknowledge the UI action + logger.debug('[EMAIL_ADAPTER] markAllAsRead called (read status handled by email service)', { + userId, + }); + return true; } } diff --git a/lib/services/notifications/rocketchat-adapter.ts b/lib/services/notifications/rocketchat-adapter.ts index 8aeeaec..97f67d6 100644 --- a/lib/services/notifications/rocketchat-adapter.ts +++ b/lib/services/notifications/rocketchat-adapter.ts @@ -527,12 +527,22 @@ export class RocketChatAdapter implements NotificationAdapter { } async markAsRead(userId: string, notificationId: string): Promise { - // Not implemented yet - RocketChat handles read status automatically - return false; + // RocketChat handles read status automatically when messages are viewed + // We return true to acknowledge the UI action, but the actual read status + // will be updated when the user views the message in RocketChat + logger.debug('[ROCKETCHAT_ADAPTER] markAsRead called (read status handled by RocketChat)', { + userId, + notificationId, + }); + return true; } async markAllAsRead(userId: string): Promise { - // Not implemented yet - RocketChat handles read status automatically - return false; + // RocketChat handles read status automatically when messages are viewed + // We return true to acknowledge the UI action + logger.debug('[ROCKETCHAT_ADAPTER] markAllAsRead called (read status handled by RocketChat)', { + userId, + }); + return true; } }