Skip to content

Commit bbcec64

Browse files
committed
Set type of all offices to Video
But office meetings should start with all participants' cameras turned off Signed-off-by: Anton Alexeyev <[email protected]>
1 parent 6ef4377 commit bbcec64

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

common/scripts/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"0.7.136"
1+
"0.7.139"

models/love/src/migration.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,17 @@ export const loveOperation: MigrateOperation = {
174174
func: async (client) => {
175175
await client.reindex(DOMAIN_MEETING_MINUTES, [love.class.MeetingMinutes])
176176
}
177+
},
178+
{
179+
state: 'default-office-video',
180+
mode: 'upgrade',
181+
func: async (client) => {
182+
await client.update(
183+
DOMAIN_LOVE,
184+
{ _class: love.class.Office, type: RoomType.Audio },
185+
{ type: RoomType.Video }
186+
)
187+
}
177188
}
178189
])
179190
},

plugins/love-resources/src/components/AddRoomPopup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{
4040
id: 'office',
4141
label: love.string.Office,
42-
type: RoomType.Audio,
42+
type: RoomType.Video,
4343
_class: love.class.Office,
4444
access: RoomAccess.Knock
4545
}

plugins/love-resources/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ async function connectLK (currentPerson: Person, room: Room): Promise<void> {
767767
await connect(currentPerson.name, room, currentPerson._id)
768768
await Promise.all([
769769
setMic($myPreferences?.micEnabled ?? lk.remoteParticipants.size < 16),
770-
setCam(room.type === RoomType.Video && ($myPreferences?.camEnabled ?? true))
770+
setCam(room.type === RoomType.Video && !isOffice(room) && ($myPreferences?.camEnabled ?? true))
771771
])
772772
}
773773

plugins/love/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function createDefaultRooms (employees: Ref<Employee>[]): (Data<Room | Of
2323
const office: Data<Office> & { _id: Ref<Office> } = {
2424
_id,
2525
name: '',
26-
type: RoomType.Audio,
26+
type: RoomType.Video,
2727
access: RoomAccess.Knock,
2828
floor: love.ids.MainFloor,
2929
width: 2,

0 commit comments

Comments
 (0)