From e8db379fede7fb800c325eb64043bb7b31ff5aba Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 27 Jun 2019 19:41:29 +0100 Subject: [PATCH] rename helper method Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/SlashCommands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index 37ae51eb1c..b554c4117a 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -34,7 +34,7 @@ import WidgetUtils from "./utils/WidgetUtils"; import {textToHtmlRainbow} from "./utils/colour"; import Promise from "bluebird"; -const requestSingleFileUpload = async () => { +const singleMxcUpload = async () => { return new Promise((resolve) => { const fileSelector = document.createElement('input'); fileSelector.setAttribute('type', 'file'); @@ -242,7 +242,7 @@ export const CommandMap = { let promise = Promise.resolve(args); if (!args) { - promise = requestSingleFileUpload(); + promise = singleMxcUpload(); } return success(promise.then((url) => { @@ -263,7 +263,7 @@ export const CommandMap = { runFn: function(roomId, args) { let promise = Promise.resolve(args); if (!args) { - promise = requestSingleFileUpload(); + promise = singleMxcUpload(); } return success(promise.then((url) => {