Skip to content

Commit a08d0f9

Browse files
committed
fixup! fixup! Fix mentioning users with subnames
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
1 parent 3e4c699 commit a08d0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Chat/Parser/UserMention.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function parseMessage(Message $chatMessage): void {
8686

8787
$mentions = $comment->getMentions();
8888
// TODO This can be removed once getMentions() returns sorted results (Nextcloud 21+)
89-
usort($mentions, static function($m1, $m2) {
89+
usort($mentions, static function ($m1, $m2) {
9090
return mb_strlen($m2['id']) <=> mb_strlen($m1['id']);
9191
});
9292

0 commit comments

Comments
 (0)