1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can delete all the notifications

This commit is contained in:
2020-04-17 13:50:47 +02:00
parent 8b6e464644
commit 2c1ae783e3
2 changed files with 39 additions and 1 deletions

View File

@ -102,4 +102,10 @@ class NotificationsHelper {
},
).exec())
.isOK;
/// Delete all unread notifications
Future<bool> deleteAllNotifications() async =>
(await APIRequest(uri: "notifications/delete_all", needLogin: true)
.exec())
.isOK;
}