Add onPreChangeMedia and improve refreshing
This commit is contained in:
parent
3f959087af
commit
f36d2b0258
5 changed files with 61 additions and 28 deletions
|
|
@ -131,7 +131,7 @@ ChatModule.prototype.handleChatMsg = function (user, data) {
|
|||
}
|
||||
data.meta = meta;
|
||||
|
||||
this.channel.checkModules("onUserChat", [user, data], function (err, result) {
|
||||
this.channel.checkModules("onUserPreChat", [user, data], function (err, result) {
|
||||
if (result === ChannelModule.PASSTHROUGH) {
|
||||
self.processChatMsg(user, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue