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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-13 12:32:44 +0300
committerJoas Schilling <coding@schilljs.com>2022-05-13 12:32:44 +0300
commit9a25e592b11638da3e85f753cca137cb1dc34304 (patch)
treecfd1ac3bce92d4faad4eae9157c06f8ad316b52b /lib/Chat/AutoComplete/Sorter.php
parent2742779a7621e13bb92a059eda34b4a433f739f9 (diff)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Chat/AutoComplete/Sorter.php')
-rw-r--r--lib/Chat/AutoComplete/Sorter.php3
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'];