Merge branch 'develop' into travis/remove-skinning
This commit is contained in:
commit
4057833036
74 changed files with 1412 additions and 1717 deletions
|
@ -37,7 +37,7 @@ import { getAddressType } from "./UserAddress";
|
|||
import { VIRTUAL_ROOM_EVENT_TYPE } from "./call-types";
|
||||
import SpaceStore from "./stores/spaces/SpaceStore";
|
||||
import { makeSpaceParentEvent } from "./utils/space";
|
||||
import { VOICE_CHANNEL_MEMBER, addVoiceChannel } from "./utils/VoiceChannelUtils";
|
||||
import { VIDEO_CHANNEL_MEMBER, addVideoChannel } from "./utils/VideoChannelUtils";
|
||||
import { Action } from "./dispatcher/actions";
|
||||
import ErrorDialog from "./components/views/dialogs/ErrorDialog";
|
||||
import Spinner from "./components/views/elements/Spinner";
|
||||
|
@ -126,11 +126,11 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
|
|||
[RoomCreateTypeField]: opts.roomType,
|
||||
};
|
||||
|
||||
// In voice rooms, allow all users to send voice member updates
|
||||
if (opts.roomType === RoomType.UnstableCall) {
|
||||
// In video rooms, allow all users to send video member updates
|
||||
if (opts.roomType === RoomType.ElementVideo) {
|
||||
createOpts.power_level_content_override = {
|
||||
events: {
|
||||
[VOICE_CHANNEL_MEMBER]: 0,
|
||||
[VIDEO_CHANNEL_MEMBER]: 0,
|
||||
// Annoyingly, we have to reiterate all the defaults here
|
||||
[EventType.RoomName]: 50,
|
||||
[EventType.RoomAvatar]: 50,
|
||||
|
@ -260,9 +260,9 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
|
|||
return SpaceStore.instance.addRoomToSpace(opts.parentSpace, roomId, [client.getDomain()], opts.suggested);
|
||||
}
|
||||
}).then(() => {
|
||||
// Set up voice rooms with a Jitsi widget
|
||||
if (opts.roomType === RoomType.UnstableCall) {
|
||||
return addVoiceChannel(roomId, createOpts.name);
|
||||
// Set up video rooms with a Jitsi widget
|
||||
if (opts.roomType === RoomType.ElementVideo) {
|
||||
return addVideoChannel(roomId, createOpts.name);
|
||||
}
|
||||
}).then(function() {
|
||||
// NB createRoom doesn't block on the client seeing the echo that the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue