Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-08 15:16:00 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-08 15:33:57 +0300
commit5b91b1f5b4df2e5603b3facba0b77bf4bcd8612f (patch)
treed00a9f7fb27c9dde531ed82a8e79e9238aff12f9 /src/service
parent4b519d5b6dd4d1260f133ee4b977a6bd2829fee1 (diff)
Make it possible to mark a folder as read
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/service')
-rw-r--r--src/service/FolderService.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/service/FolderService.js b/src/service/FolderService.js
index c24c9aceb..095aa1318 100644
--- a/src/service/FolderService.js
+++ b/src/service/FolderService.js
@@ -30,3 +30,12 @@ export function getFolderStats(accountId, folderId) {
return Axios.get(url).then(resp => resp.data)
}
+
+export function markFolderRead(accountId, folderId) {
+ const url = generateUrl('/apps/mail/api/accounts/{accountId}/folders/{folderId}/read', {
+ accountId,
+ folderId,
+ })
+
+ return Axios.post(url).then(resp => resp.data)
+}