mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Can delete notifications from notifications screen
This commit is contained in:
@ -75,4 +75,14 @@ class NotificationsHelper {
|
||||
f["from_container_type"]]))
|
||||
.toList());
|
||||
}
|
||||
|
||||
/// Mark a notification as seen
|
||||
Future<bool> markSeen(Notification n) async => (await APIRequest(
|
||||
uri: "notifications/mark_seen",
|
||||
needLogin: true,
|
||||
args: {
|
||||
"notifID": n.id.toString(),
|
||||
},
|
||||
).exec())
|
||||
.isOK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user