From 228aeb4dd17c89b6698b6d28aea91873147df55c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 23 Aug 2021 15:47:50 +0200 Subject: Autofixes Signed-off-by: Joas Schilling --- src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue | 7 ++++--- src/components/NewMessageForm/NewMessageForm.vue | 9 ++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/components/NewMessageForm') diff --git a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue index eae9624c5..c54995088 100644 --- a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue +++ b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue @@ -107,7 +107,7 @@ import debounce from 'debounce' * vue-at component or not. * * @param {CSSStyleSheet} sheet the style sheet to check. - * @returns {Boolean} True if it is the style sheet from vue-at, false + * @return {boolean} True if it is the style sheet from vue-at, false * otherwise. */ function isDefaultAtWhoStyleSheet(sheet) { @@ -281,7 +281,8 @@ export default { * The vue-at library only searches in the display name by default. * But luckily our server responds already only with matching items, * so we just filter none and show them all. - * @returns {boolean} True as we never filter anything out + * + * @return {boolean} True as we never filter anything out */ atFilter() { return true @@ -347,7 +348,7 @@ export default { * Sets the autocomplete mention candidates based on the matched text * after the "@". * - * @param {String} chunk the matched text to look candidate mentions for. + * @param {string} chunk the matched text to look candidate mentions for. */ handleAtEvent: debounce(function(chunk) { this.queryPossibleMentions(chunk) diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index d506e6c60..ea426b765 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -185,7 +185,7 @@ export default { /** * The current conversation token * - * @returns {String} + * @return {string} */ token() { return this.$store.getters.getToken() @@ -314,8 +314,8 @@ export default { * * The parsed text is also trimmed. * - * @param {String} text the raw text - * @returns {String} the parsed text + * @param {string} text the raw text + * @return {string} the parsed text */ rawToParsed(text) { text = text.replace(/
/g, '\n') @@ -397,7 +397,7 @@ export default { async handleFileShare() { picker.pick() - .then(async(path) => { + .then(async (path) => { console.debug(`path ${path} selected for sharing`) if (!path.startsWith('/')) { throw new Error(t('files', 'Invalid path selected')) @@ -440,7 +440,6 @@ export default { * @param {File[] | FileList} files pasted files list * @param {bool} rename whether to rename the files * @param {bool} isVoiceMessage indicates whether the file is a vooicemessage - */ async handleFiles(files, rename = false, isVoiceMessage) { // Create a unique id for the upload operation -- cgit v1.2.3