diff options
author | Joas Schilling <coding@schilljs.com> | 2020-05-19 14:24:43 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-19 14:24:43 +0300 |
commit | c9bc798a4fb53dbfa174a861f32495fa1e8efa48 (patch) | |
tree | c37ff81d930cb584ee626827497867b441ddc98e /lib/Manager.php | |
parent | 2b9688568ad74e9b1803c91ccf15cab333513daa (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.php | 4 |
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; } |