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
commit a1432ef0f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,