Notifications cleared for a whole thread in case of one mark seen

This commit is contained in:
nupplaPhil 2020-01-31 21:34:12 +01:00
parent 4ab893a561
commit 7909d9c417
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 32 additions and 35 deletions

View file

@ -2,7 +2,6 @@
namespace Friendica\Model;
use Exception;
use Friendica\BaseModel;
use Friendica\Content\Text\BBCode;
use Friendica\Database\Database;
@ -50,24 +49,6 @@ class Notify extends BaseModel
$this->setMsgCache();
}
/**
* Set the notification as seen
*
* @param bool $seen true, if seen
*
* @return bool True, if the seen state could be saved
*/
public function setSeen(bool $seen = true)
{
$this->seen = $seen;
try {
return $this->repo->update($this);
} catch (Exception $e) {
$this->logger->warning('Update failed.', ['$this' => $this, 'exception' => $e]);
return false;
}
}
/**
* Sets the pre-formatted name (caching)
*/