mirror of https://github.com/vector-im/riot-web
Merge branch 'develop' into johannes/find-myself
commit
0d59532147
|
@ -258,17 +258,16 @@ class PipContainerInner extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private createVoiceBroadcastPlaybackPipContent(voiceBroadcastPlayback: VoiceBroadcastPlayback): CreatePipChildren {
|
private createVoiceBroadcastPlaybackPipContent(voiceBroadcastPlayback: VoiceBroadcastPlayback): CreatePipChildren {
|
||||||
if (this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId()) {
|
const content =
|
||||||
return ({ onStartMoving }) => (
|
this.state.viewedRoomId === voiceBroadcastPlayback.infoEvent.getRoomId() ? (
|
||||||
<div onMouseDown={onStartMoving}>
|
|
||||||
<VoiceBroadcastPlaybackBody playback={voiceBroadcastPlayback} pip={true} />
|
<VoiceBroadcastPlaybackBody playback={voiceBroadcastPlayback} pip={true} />
|
||||||
</div>
|
) : (
|
||||||
|
<VoiceBroadcastSmallPlaybackBody playback={voiceBroadcastPlayback} />
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return ({ onStartMoving }) => (
|
return ({ onStartMoving }) => (
|
||||||
<div onMouseDown={onStartMoving}>
|
<div key={voiceBroadcastPlayback.infoEvent.getId()} onMouseDown={onStartMoving}>
|
||||||
<VoiceBroadcastSmallPlaybackBody playback={voiceBroadcastPlayback} />
|
{content}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButton
|
||||||
joinButtons = (
|
joinButtons = (
|
||||||
<>
|
<>
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
kind="secondary"
|
kind="primary_outline"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setBusy(true);
|
setBusy(true);
|
||||||
onRejectButtonClicked();
|
onRejectButtonClicked();
|
||||||
|
|
|
@ -84,7 +84,8 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true): Promise<Form
|
||||||
body.append("user_id", client.credentials.userId);
|
body.append("user_id", client.credentials.userId);
|
||||||
body.append("device_id", client.deviceId);
|
body.append("device_id", client.deviceId);
|
||||||
|
|
||||||
if (client.isCryptoEnabled()) {
|
// TODO: make this work with rust crypto
|
||||||
|
if (client.isCryptoEnabled() && client.crypto) {
|
||||||
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
||||||
if (client.getDeviceCurve25519Key) {
|
if (client.getDeviceCurve25519Key) {
|
||||||
keys.push(`curve25519:${client.getDeviceCurve25519Key()}`);
|
keys.push(`curve25519:${client.getDeviceCurve25519Key()}`);
|
||||||
|
|
|
@ -116,7 +116,8 @@ function getEnabledLabs(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
|
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
|
||||||
if (!client.isCryptoEnabled()) {
|
// TODO: make this work with rust crypto
|
||||||
|
if (!client.isCryptoEnabled() || !client.crypto) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
||||||
|
|
Loading…
Reference in New Issue