mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +00:00
notification: Move loadBots call to preload, to break an import cycle.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user