mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Add mark as unread action to notifications list
Adds a "Mark as unread" option to the notification popup menu (shown only for already-read items) and a swipe-right gesture, mirroring the existing "Mark as read" actions. Swipe/menu actions respect the active filter: items are removed from the list only when filtered to New or Old, and snap back when viewing All. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c04e76157e
commit
e320d54b38
@@ -71,6 +71,11 @@ class BackendAPI {
|
||||
await _dio.get('/notifications/$id');
|
||||
}
|
||||
|
||||
Future<void> markNotificationAsNew(int id) async {
|
||||
print('About to call /notifications/$id/mark_as_new');
|
||||
await _dio.post('/notifications/$id/mark_as_new');
|
||||
}
|
||||
|
||||
Future<List<Notification>> listNotifications(bool? isNew, int offset) async {
|
||||
print('About to call /notifications');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user