mirror of
https://github.com/chatmail/core.git
synced 2026-10-03 03:30:36 +03:00
feat: use EventEmitter for events
This commit is contained in:
+1
-1
@@ -44,6 +44,6 @@ macro_rules! error {
|
||||
#[macro_export]
|
||||
macro_rules! emit_event {
|
||||
($ctx:expr, $event:expr) => {
|
||||
$ctx.call_cb($event);
|
||||
$ctx.emit_event($event);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user