mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
feat: add tag deletion
This commit is contained in:
@@ -3,6 +3,8 @@ import EventManager from "./utils/event-manager";
|
||||
export const EV = new EventManager();
|
||||
|
||||
export async function sendCheckUserStatusEvent(type) {
|
||||
if (process.env.NODE_ENV === "testing") return true;
|
||||
|
||||
const results = await EV.publishWithResult(EVENTS.userCheckStatus, type);
|
||||
if (typeof results === "boolean") return results;
|
||||
return results.some((r) => r.type === type && r.result === true);
|
||||
|
||||
Reference in New Issue
Block a user