Add room_id and display_name to rageshakes
This commit is contained in:
parent
641b82dc45
commit
3b017eb92b
5 changed files with 14 additions and 3 deletions
|
|
@ -47,9 +47,16 @@ export function useSubmitRageshake() {
|
|||
body.append("touch_input", touchInput);
|
||||
|
||||
if (client) {
|
||||
const userId = client.getUserId();
|
||||
const user = client.getUser(userId);
|
||||
body.append("display_name", user?.displayName);
|
||||
body.append("user_id", client.credentials.userId);
|
||||
body.append("device_id", client.deviceId);
|
||||
|
||||
if (opts.roomId) {
|
||||
body.append("room_id", opts.roomId);
|
||||
}
|
||||
|
||||
if (client.isCryptoEnabled()) {
|
||||
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
||||
if (client.getDeviceCurve25519Key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue