diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-13 12:32:44 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-13 12:32:44 +0300 |
commit | 9a25e592b11638da3e85f753cca137cb1dc34304 (patch) | |
tree | cfd1ac3bce92d4faad4eae9157c06f8ad316b52b /lib/Chat/AutoComplete/Sorter.php | |
parent | 2742779a7621e13bb92a059eda34b4a433f739f9 (diff) |
Fix missing constant usagetechdebt/noid/fix-missing-constant-usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Chat/AutoComplete/Sorter.php')
-rw-r--r-- | lib/Chat/AutoComplete/Sorter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Chat/AutoComplete/Sorter.php b/lib/Chat/AutoComplete/Sorter.php index f63d1a284..fe60c2861 100644 --- a/lib/Chat/AutoComplete/Sorter.php +++ b/lib/Chat/AutoComplete/Sorter.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace OCA\Talk\Chat\AutoComplete; +use OCA\Talk\Chat\ChatManager; use OCA\Talk\Chat\CommentsManager; use OCP\Collaboration\AutoComplete\ISorter; use OCP\Comments\ICommentsManager; @@ -59,7 +60,7 @@ class Sorter implements ISorter { $lastComments = $this->commentsManager->getLastCommentDateByActor( $context['itemType'], $context['itemId'], - 'comment', + ChatManager::VERB_MESSAGE, $type, array_map(function (array $suggestion) { return $suggestion['value']['shareWith']; |