nextcloud/apps/comments/tests/Unit
Anna Larch 07c068b042 fix(comments): dismiss mention notifications and clear unread badge when viewed in activity sidebar
Backport of #60617 for stable31.

When comments are loaded via the Activity sidebar integration, call
markCommentsAsRead() so the file-row unread comment bubble clears after
viewing. Also add a DELETE /notifications/{id} endpoint and call it for
each comment that mentions the current user so the notification bell
clears without navigating via the notification link.

Fixes: nextcloud/activity#2531

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-05-25 15:41:37 +02:00
..
Activity refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
AppInfo refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Collaboration refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Controller fix(comments): dismiss mention notifications and clear unread badge when viewed in activity sidebar 2026-05-25 15:41:37 +02:00
Notification chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +02:00
EventHandlerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00