You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Remove test error on startup, and send correct user text
This commit is contained in:
@@ -396,14 +396,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
CountlyAnalytics.instance.enable(/* anonymous = */ true);
|
CountlyAnalytics.instance.enable(/* anonymous = */ true);
|
||||||
|
|
||||||
initSentry(SdkConfig.get()["sentry"]);
|
initSentry(SdkConfig.get()["sentry"]);
|
||||||
setTimeout(() => {
|
|
||||||
try {
|
|
||||||
const e = new Error("whoops");
|
|
||||||
throw(e);
|
|
||||||
} catch (e) {
|
|
||||||
sendSentryReport("user text", "label", e);
|
|
||||||
}
|
|
||||||
}, 4000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async postLoginSetup() {
|
private async postLoginSetup() {
|
||||||
|
|||||||
@@ -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> => {
|
private onDownload = async (): Promise<void> => {
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export async function sendSentryReport(userText: string, issueUrl: string, error
|
|||||||
const captureContext = {
|
const captureContext = {
|
||||||
"contexts": await getContexts(),
|
"contexts": await getContexts(),
|
||||||
"extra": {
|
"extra": {
|
||||||
"userText": userText,
|
"user_text": userText,
|
||||||
"issue_url": issueUrl,
|
"issue_url": issueUrl,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user