Merge pull request #756 from vector-im/dbkr/rageshake_request_in_title

Put rageshake request ID in title of debug log submission
This commit is contained in:
David Baker 2022-11-17 16:54:05 +00:00 committed by GitHub
commit 46e429c37b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,10 +72,15 @@ export function useSubmitRageshake(): {
touchInput = String(window.matchMedia("(pointer: coarse)").matches);
} catch (e) {}
let description = opts.rageshakeRequestId
? `Rageshake ${opts.rageshakeRequestId}`
: "";
if (opts.description) description += `: ${opts.description}`;
const body = new FormData();
body.append(
"text",
opts.description || "User did not supply any additional text."
description ?? "User did not supply any additional text."
);
body.append("app", "matrix-video-chat");
body.append(