diff --git a/src/vector/rageshakesetup.js b/src/vector/rageshakesetup.js index 4c376249..e1dc5e24 100644 --- a/src/vector/rageshakesetup.js +++ b/src/vector/rageshakesetup.js @@ -50,6 +50,10 @@ initRageshake(); global.mxSendRageshake = function(text, withLogs) { if (withLogs === undefined) withLogs = true; + if (!text || !text.trim()) { + console.error("Cannot send a rageshake without a message - please tell us what went wrong"); + return; + } require(['matrix-react-sdk/lib/rageshake/submit-rageshake'], (s) => { s(SdkConfig.get().bug_report_endpoint_url, { userText: text,