mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 14:09:34 +01:00
10 lines
339 B
JavaScript
10 lines
339 B
JavaScript
import EventManager from "./utils/event-manager";
|
|
|
|
export const EV = new EventManager();
|
|
|
|
export async function sendCheckUserStatusEvent(type) {
|
|
const results = await EV.publishWithResult("user:checkStatus", type);
|
|
if (typeof results === "boolean") return results;
|
|
return results.some((r) => r.type === type && r.result === true);
|
|
}
|