Put rageshake request ID in title of debug log submission

This commit is contained in:
David Baker 2022-11-17 16:06:41 +00:00
parent b92acd4822
commit eab8b1d095

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(