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>2020-05-19 14:24:43 +0300
committerJoas Schilling <coding@schilljs.com>2020-05-19 14:24:43 +0300
commitc9bc798a4fb53dbfa174a861f32495fa1e8efa48 (patch)
treec37ff81d930cb584ee626827497867b441ddc98e /lib/Manager.php
parent2b9688568ad74e9b1803c91ccf15cab333513daa (diff)
Correctly trim user list on name generation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-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;
}