feat: show room name on join page

pull/16/head
sualko 2020-04-28 14:34:30 +02:00
parent 44daf3f959
commit b0ce8f2c5d
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ class JoinController extends PublicShareController
} elseif (empty($displayname) || strlen($displayname) < 3) {
$apiUrl = $this->config->getAppValue($this->appName, 'api.url');
$response = new TemplateResponse($this->appName, 'publicdisplayname', [
'room' => $room->name,
'wrongdisplayname' => !empty($displayname) && strlen($displayname) < 3
], 'guest');

View File

@ -6,7 +6,7 @@
?>
<form method="get" action="?">
<fieldset class="warning">
<!-- @TODO show room name -->
<h2><?php p($_['room']) ?></h2>
<?php if (!isset($_['wrongdisplayname']) || !$_['wrongdisplayname']): ?>
<p><?php p($l->t('How is your name?')); ?></p>
<?php endif; ?>