diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ffca51c6d7..5f472303dd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -31,9 +31,10 @@ Describe here the problem that you are experiencing, or the feature you are requ Describe how what happens differs from what you expected. -Log: sent/not sent? + +Logs being sent: yes/no diff --git a/.github/ISSUE_TEMPLATE/user-interface-or-usability-bug-report.md b/.github/ISSUE_TEMPLATE/user-interface-or-usability-bug-report.md index ffb8971b2d..b3e68ccec9 100644 --- a/.github/ISSUE_TEMPLATE/user-interface-or-usability-bug-report.md +++ b/.github/ISSUE_TEMPLATE/user-interface-or-usability-bug-report.md @@ -33,9 +33,10 @@ Describe here the problem that you are experiencing, or the feature you are requ Describe how what happens differs from what you expected. -Log: sent/not sent? + +Logs being sent: yes/no diff --git a/src/vector/rageshakesetup.js b/src/vector/rageshakesetup.js index 4c37624959..e1dc5e2440 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,