Browse Source
Shorter string
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1158/head
Joas Schilling
7 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
7 additions and
2 deletions
-
js/app.js
|
|
|
@ -117,14 +117,19 @@ |
|
|
|
type: "createGroupRoom" |
|
|
|
}); |
|
|
|
} else { |
|
|
|
var shortenedName = OCA.SpreedMe.app._searchTerm; |
|
|
|
if (OCA.SpreedMe.app._searchTerm.length > 25) { |
|
|
|
shortenedName = shortenedName.substring(0, 25) + '…'; |
|
|
|
} |
|
|
|
|
|
|
|
results.push({ |
|
|
|
id: "create-group-room", |
|
|
|
displayName: t('spreed', 'Create "{name}"', { name: OCA.SpreedMe.app._searchTerm }), |
|
|
|
displayName: shortenedName, |
|
|
|
type: "createGroupRoom" |
|
|
|
}); |
|
|
|
results.push({ |
|
|
|
id: "create-public-room", |
|
|
|
displayName: t('spreed', 'Create "{name}"', { name: OCA.SpreedMe.app._searchTerm }), |
|
|
|
displayName: t('spreed', '{name} (public)', { name: shortenedName }), |
|
|
|
type: "createPublicRoom" |
|
|
|
}); |
|
|
|
} |
|
|
|
|