notifications big

This commit is contained in:
alma 2026-01-11 22:56:25 +01:00
parent 8285eeb9ec
commit 0fc5c75217
2 changed files with 28 additions and 8 deletions

View File

@ -345,12 +345,22 @@ export class EmailAdapter implements NotificationAdapter {
}
async markAsRead(userId: string, notificationId: string): Promise<boolean> {
// 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<boolean> {
// 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;
}
}

View File

@ -527,12 +527,22 @@ export class RocketChatAdapter implements NotificationAdapter {
}
async markAsRead(userId: string, notificationId: string): Promise<boolean> {
// 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<boolean> {
// 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;
}
}