Skip to content

Commit 45efdbd

Browse files
committed
Include MXID and device id in rageshakes
- to make for easier triage
1 parent bf88620 commit 45efdbd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/vector/submit-rageshake.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
import pako from 'pako';
1818
import q from "q";
1919

20+
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
2021
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
2122

2223
import rageshake from './rageshake'
@@ -64,6 +65,8 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
6465
userAgent = window.navigator.userAgent;
6566
}
6667

68+
const client = MatrixClientPeg.get();
69+
6770
console.log("Sending bug report.");
6871

6972
const body = new FormData();
@@ -72,6 +75,11 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
7275
body.append('version', version);
7376
body.append('user_agent', userAgent);
7477

78+
if (client) {
79+
body.append('user_id', client.credentials.userId);
80+
body.append('device_id', client.deviceId);
81+
}
82+
7583
if (opts.sendLogs) {
7684
progressCallback("Collecting logs");
7785
const logs = await rageshake.getLogsForReport();

0 commit comments

Comments
 (0)