Merge branch 'travis/moar-jitsi' into travis/addwidget-improvements
This commit is contained in:
commit
a55698e943
86 changed files with 1067 additions and 495 deletions
|
@ -38,6 +38,8 @@ import {inviteUsersToRoom} from "./RoomInvite";
|
|||
import { WidgetType } from "./widgets/WidgetType";
|
||||
import { Jitsi } from "./widgets/Jitsi";
|
||||
import { parseFragment as parseHtml } from "parse5";
|
||||
import sendBugReport from "./rageshake/submit-rageshake";
|
||||
import SdkConfig from "./SdkConfig";
|
||||
|
||||
// XXX: workaround for https://github.com/microsoft/TypeScript/issues/31816
|
||||
interface HTMLInputEvent extends Event {
|
||||
|
@ -947,6 +949,27 @@ export const Commands = [
|
|||
},
|
||||
category: CommandCategories.advanced,
|
||||
}),
|
||||
new Command({
|
||||
command: "rageshake",
|
||||
aliases: ["bugreport"],
|
||||
description: _td("Send a bug report with logs"),
|
||||
args: "<description>",
|
||||
runFn: function(roomId, args) {
|
||||
return success(
|
||||
sendBugReport(SdkConfig.get().bug_report_endpoint_url, {
|
||||
userText: args,
|
||||
sendLogs: true,
|
||||
}).then(() => {
|
||||
const InfoDialog = sdk.getComponent('dialogs.InfoDialog');
|
||||
Modal.createTrackedDialog('Slash Commands', 'Rageshake sent', InfoDialog, {
|
||||
title: _t('Logs sent'),
|
||||
description: _t('Thank you!'),
|
||||
});
|
||||
}),
|
||||
);
|
||||
},
|
||||
category: CommandCategories.advanced,
|
||||
}),
|
||||
|
||||
// Command definitions for autocompletion ONLY:
|
||||
// /me is special because its not handled by SlashCommands.js and is instead done inside the Composer classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue