notification: Move loadBots call to preload, to break an import cycle.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-24 01:36:35 -07:00
parent 0e00f3bbce
commit 960312a932
2 changed files with 6 additions and 10 deletions

View File

@@ -1,9 +1,7 @@
import {remote} from 'electron';
import electron_bridge from '../electron-bridge';
import DefaultNotification from './default-notification';
import {appId, loadBots} from './helpers';
import {appId} from './helpers';
const {app} = remote;
@@ -69,7 +67,3 @@ export function newNotification(
actions: notification.actions
};
}
electron_bridge.once('zulip-loaded', async () => {
await loadBots();
});