1
0
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:
2019-11-02 12:14:17 +01:00
parent 559516efbd
commit 5250eb59b4
2 changed files with 44 additions and 0 deletions

View File

@ -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;
}