Commit 1bd43eff by Sixong.Zhu

u

parent 3fb1ed46
Showing with 0 additions and 7 deletions
......@@ -285,7 +285,6 @@ export class Xim {
kind: string,
listener: ChatNotifyListener
): this;
public on(event: "chat", listener: ChatNotifyListener): this;
public on(event: "chat_notify", listener: ChatNotifyListener): this;
public on(event: "status", listener: StatusChangeListener): this;
public on(...args: any[]): this {
......@@ -306,7 +305,6 @@ export class Xim {
kind: string,
listener: ChatNotifyListener
): this;
public off(event: "chat", listener: ChatNotifyListener): this;
public off(event: "chat_notify", listener: ChatNotifyListener): this;
public off(event: "status", listener: StatusChangeListener): this;
public off(...args: any[]): this {
......@@ -430,11 +428,6 @@ export class Xim {
this.on("msg", action);
vue.$once("hook:beforeDestroy", () => this.off("msg", action));
}
public registerOnChatChanged(vue: Vue, action: () => void) {
this.on("chat", action);
vue.$once("hook:beforeDestroy", () => this.off("chat", action));
}
}
const ximInstance = new Xim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment