mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Add the app id to the markProcessed method
This commit is contained in:
parent
0bcae89d14
commit
f0ecfa6e6c
2 changed files with 5 additions and 3 deletions
|
|
@ -155,16 +155,17 @@ class Manager implements IManager {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $appId
|
||||
* @param string $objectType
|
||||
* @param int $objectId
|
||||
* @param string $user
|
||||
* @return null
|
||||
*/
|
||||
public function markProcessed($objectType, $objectId, $user = '') {
|
||||
public function markProcessed($appId, $objectType, $objectId, $user = '') {
|
||||
$apps = $this->getApps();
|
||||
|
||||
foreach ($apps as $app) {
|
||||
$app->markProcessed($objectType, $objectId, $user);
|
||||
$app->markProcessed($appId, $objectType, $objectId, $user);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,13 +41,14 @@ interface IApp {
|
|||
public function notify(INotification $notification);
|
||||
|
||||
/**
|
||||
* @param string $appId
|
||||
* @param string $objectType
|
||||
* @param int $objectId
|
||||
* @param string $user
|
||||
* @return null
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function markProcessed($objectType, $objectId, $user = '');
|
||||
public function markProcessed($appId, $objectType, $objectId, $user = '');
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
|
|
|
|||
Loading…
Reference in a new issue