diff --git a/src/components/structures/PipContainer.tsx b/src/components/structures/PipContainer.tsx index 416458e6ff..7bbbb1c568 100644 --- a/src/components/structures/PipContainer.tsx +++ b/src/components/structures/PipContainer.tsx @@ -258,17 +258,16 @@ class PipContainerInner extends React.Component { } private createVoiceBroadcastPlaybackPipContent(voiceBroadcastPlayback: VoiceBroadcastPlayback): CreatePipChildren { - if (this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId()) { - return ({ onStartMoving }) => ( -
- -
+ const content = + this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId() ? ( + + ) : ( + ); - } return ({ onStartMoving }) => ( -
- +
+ {content}
); } diff --git a/src/components/views/rooms/RoomPreviewCard.tsx b/src/components/views/rooms/RoomPreviewCard.tsx index 4c0a016f85..2714bec93a 100644 --- a/src/components/views/rooms/RoomPreviewCard.tsx +++ b/src/components/views/rooms/RoomPreviewCard.tsx @@ -116,7 +116,7 @@ const RoomPreviewCard: FC = ({ room, onJoinButtonClicked, onRejectButton joinButtons = ( <> { setBusy(true); onRejectButtonClicked(); diff --git a/src/rageshake/submit-rageshake.ts b/src/rageshake/submit-rageshake.ts index 1024caadf0..09f9ae6037 100644 --- a/src/rageshake/submit-rageshake.ts +++ b/src/rageshake/submit-rageshake.ts @@ -84,7 +84,8 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true): Promise
{ - if (!client.isCryptoEnabled()) { + // TODO: make this work with rust crypto + if (!client.isCryptoEnabled() || !client.crypto) { return {}; } const keys = [`ed25519:${client.getDeviceEd25519Key()}`];