Skip to content

Commit

Permalink
Better room name for password request of a link share
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 8, 2018
1 parent be48fef commit 0dbf1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PublicShareAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function createRoom(string $shareToken): DataResponse {
if ($share->getShareType() === Share::SHARE_TYPE_EMAIL) {
$roomName = $share->getSharedWith();
} else {
$roomName = $share->getTarget();
$roomName = trim($share->getTarget(), '/');
}

// Create the room
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected function formatRoom(Room $room, Participant $participant = null): arra

if ($room->getObjectType() === 'share:password') {
// FIXME use an event
$roomData['displayName'] = $this->l10n->t('Password request by %s', [$room->getName()]);
$roomData['displayName'] = $this->l10n->t('Password request: %s', [$room->getName()]);
}

$currentUser = $this->userManager->get($this->userId);
Expand Down

0 comments on commit 0dbf1e0

Please sign in to comment.