Add room_id and display_name to rageshakes

This commit is contained in:
Robert Long
2022-02-23 15:52:53 -08:00
parent 641b82dc45
commit 3b017eb92b
5 changed files with 14 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ export function FeedbackModal({ inCall, roomId, ...rest }) {
description,
sendLogs,
rageshakeRequestId,
roomId,
});
if (inCall && sendLogs) {

View File

@@ -193,7 +193,10 @@ export function InCallView({
show={showInspector}
/>
{rageshakeRequestModalState.isOpen && (
<RageshakeRequestModal {...rageshakeRequestModalProps} />
<RageshakeRequestModal
{...rageshakeRequestModalProps}
roomId={roomId}
/>
)}
</div>
);

View File

@@ -17,7 +17,6 @@ export function OverflowMenu({
roomId,
setShowInspector,
showInspector,
client,
inCall,
groupCall,
}) {

View File

@@ -5,7 +5,7 @@ import { FieldRow, ErrorMessage } from "../input/Input";
import { useSubmitRageshake } from "../settings/rageshake";
import { Body } from "../typography/Typography";
export function RageshakeRequestModal({ rageshakeRequestId, ...rest }) {
export function RageshakeRequestModal({ rageshakeRequestId, roomId, ...rest }) {
const { submitRageshake, sending, sent, error } = useSubmitRageshake();
useEffect(() => {
@@ -27,6 +27,7 @@ export function RageshakeRequestModal({ rageshakeRequestId, ...rest }) {
submitRageshake({
sendLogs: true,
rageshakeRequestId,
roomId,
})
}
disabled={sending}