Skip to content

Commit

Permalink
Merge branch 'develop' into imp/retention
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jun 20, 2024
2 parents 97b16db + 1428778 commit 533f8bf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions apps/meteor/app/livechat/server/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,22 @@ Meteor.startup(async () => {
});
await createDefaultBusinessHourIfNotExists();

settings.watch<boolean>('Livechat_enable_business_hours', async (value) => {
logger.debug(`Starting business hour manager ${value}`);
if (value) {
await businessHourManager.startManager();
return;
}
await businessHourManager.stopManager();
});
settings.watch<boolean>(
'Livechat_enable_business_hours',
async (value) => {
logger.debug(`Starting business hour manager ${value}`);
if (value) {
await businessHourManager.startManager();
return;
}
await businessHourManager.stopManager();
},
process.env.TEST_MODE === 'true'
? {
debounce: 10,
}
: undefined,
);

settings.watch<string>('Livechat_Routing_Method', () => {
void RoutingManager.startQueue();
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/e2e-encryption.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ test.describe.serial('e2e-encryption', () => {
await expect(poHomeChannel.content.lastUserMessage.locator('.rcx-icon--name-key')).toBeVisible();

await page.locator('[data-qa-type="message"]').last().hover();
await expect(page.locator('role=button[name="Forward message"]')).toBeDisabled();
await expect(page.locator('role=button[name="Forward message not available on encrypted content"]')).toBeDisabled();

await poHomeChannel.content.openLastMessageMenu();

Expand Down

0 comments on commit 533f8bf

Please sign in to comment.