Merge pull request #10321 from vector-im/travis/rageshake-required

Require descriptions in mxSendRageshake and remove infinite loop in issue templates
This commit is contained in:
Travis Ralston
2019-07-12 08:12:03 -06:00
committed by GitHub
3 changed files with 12 additions and 6 deletions

View File

@@ -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,