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
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-05-19 14:24:43 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-05-21 15:08:02 +0300
commitc4dd0e6c6c3285da7e8ebea4047dc72cfd0659e7 (patch)
treee563fc2b4f054b0d400cd9ac06f3b73c4b0c880a /lib
parentcaa1ddf98f5ecf0967e2c7eccd2a9c076f7fb325 (diff)
Correctly trim user list on name generation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Manager.php b/lib/Manager.php
index aa539299b..43c4bf180 100644
--- a/lib/Manager.php
+++ b/lib/Manager.php
@@ -776,8 +776,8 @@ class Manager {
}
$roomName = implode(', ', $displayNames);
- if (strlen($roomName) > 128) {
- $roomName = substr($roomName, 120) . '…';
+ if (mb_strlen($roomName) > 64) {
+ $roomName = mb_substr($roomName, 0, 60) . '…';
}
return $roomName;
}