Remove test error on startup, and send correct user text

pull/21833/head
James Salter 2021-08-11 17:47:54 +01:00
parent ba1618812c
commit cc9ddb351f
4 changed files with 4 additions and 12 deletions

View File

@ -396,14 +396,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
CountlyAnalytics.instance.enable(/* anonymous = */ true);
initSentry(SdkConfig.get()["sentry"]);
setTimeout(() => {
try {
const e = new Error("whoops");
throw(e);
} catch (e) {
sendSentryReport("user text", "label", e);
}
}, 4000);
}
private async postLoginSetup() {

View File

@ -116,7 +116,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
}
});
sendSentryReport(userText, this.state.issueUrl, this.props.error);
sendSentryReport(this.state.text, this.state.issueUrl, this.props.error);
};
private onDownload = async (): Promise<void> => {

View File

@ -115,7 +115,7 @@ export async function sendSentryReport(userText: string, issueUrl: string, error
const captureContext = {
"contexts": await getContexts(),
"extra": {
"userText": userText,
"user_text": userText,
"issue_url": issueUrl,
},
};