summaryrefslogtreecommitdiffstats
path: root/lib/Service/FolderServiceV2.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/FolderServiceV2.php')
-rw-r--r--lib/Service/FolderServiceV2.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Service/FolderServiceV2.php b/lib/Service/FolderServiceV2.php
index d13b4afc0..17d955876 100644
--- a/lib/Service/FolderServiceV2.php
+++ b/lib/Service/FolderServiceV2.php
@@ -186,13 +186,15 @@ class FolderServiceV2 extends Service
* @param int $id Folder ID
* @param int|null $maxItemID Highest item ID to mark as read
*
+ * @return int
+ *
* @throws ServiceConflictException
* @throws ServiceNotFoundException
*/
- public function read(string $userId, int $id, ?int $maxItemID = null): void
+ public function read(string $userId, int $id, ?int $maxItemID = null): int
{
$folder = $this->find($userId, $id);
- $this->mapper->read($userId, $folder->getId(), $maxItemID);
+ return $this->mapper->read($userId, $folder->getId(), $maxItemID);
}
}