Skip to content

Commit

Permalink
Merge branch 'develop' into fix/tags-enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
casalsgh authored Sep 12, 2023
2 parents 492d84c + 8202f27 commit 416716f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
4 changes: 3 additions & 1 deletion apps/meteor/client/lib/2fa/process2faReturn.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { SHA256 } from '@rocket.chat/sha256';
import { Meteor } from 'meteor/meteor';
import { lazy } from 'react';

import TwoFactorModal from '../../components/TwoFactorModal';
import { imperativeModal } from '../imperativeModal';
import { isTotpInvalidError, isTotpRequiredError } from './utils';

const TwoFactorModal = lazy(() => import('../../components/TwoFactorModal'));

const twoFactorMethods = ['totp', 'email', 'password'] as const;

type TwoFactorMethod = (typeof twoFactorMethods)[number];
Expand Down
24 changes: 13 additions & 11 deletions apps/meteor/client/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import '../ee/client/ecdh';
import './polyfills';
import { FlowRouter } from 'meteor/kadira:flow-router';

import '../lib/oauthRedirectUriClient';
import './lib/meteorCallWrapper';
import './importPackages';
FlowRouter.wait();

import '../ee/client';
import './methods';
import './startup';
import './views/admin';
import './views/marketplace';
import './views/account';
FlowRouter.notFound = {
action: () => undefined,
};

import('./polyfills')
.then(() => Promise.all([import('./lib/meteorCallWrapper'), import('../lib/oauthRedirectUriClient')]))
.then(() => import('../ee/client/ecdh'))
.then(() => import('./importPackages'))
.then(() => Promise.all([import('./methods'), import('./startup')]))
.then(() => import('../ee/client'))
.then(() => Promise.all([import('./views/admin'), import('./views/marketplace'), import('./views/account')]));
1 change: 0 additions & 1 deletion apps/meteor/client/polyfills/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ import './childNodeRemove';
import './cssVars';
import './customEventPolyfill';
import './hoverTouchClick';
import './objectFromEntries';
5 changes: 0 additions & 5 deletions apps/meteor/client/polyfills/objectFromEntries.ts

This file was deleted.

6 changes: 0 additions & 6 deletions apps/meteor/client/providers/RouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ import React from 'react';
import { appLayout } from '../lib/appLayout';
import { queueMicrotask } from '../lib/utils/queueMicrotask';

FlowRouter.wait();

FlowRouter.notFound = {
action: () => undefined,
};

const subscribers = new Set<() => void>();

const listenToRouteChange = () => {
Expand Down
7 changes: 7 additions & 0 deletions apps/meteor/ee/server/models/raw/LivechatRooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,13 @@ export class LivechatRoomsRawEE extends LivechatRoomsRaw implements ILivechatRoo
},
},
},
{
$match: {
_id: {
$ne: null,
},
},
},
{
$sort: sort || { total: 1 },
},
Expand Down

0 comments on commit 416716f

Please sign in to comment.