Refactor contacts/messenger so that it is usable directly in the apps
This commit is contained in:
@@ -776,6 +776,14 @@ define([
|
||||
Cryptpad.messenger.setChannelHead(opt, cb);
|
||||
});
|
||||
|
||||
sframeChan.on('Q_CHAT_COMMAND', function (data, cb) {
|
||||
Cryptpad.messenger.execCommand(data, cb);
|
||||
});
|
||||
Cryptpad.messenger.onEvent.reg(function (data) {
|
||||
console.log(data);
|
||||
sframeChan.event('EV_CHAT_EVENT', data);
|
||||
});
|
||||
|
||||
Cryptpad.messenger.onMessageEvent.reg(function (data) {
|
||||
sframeChan.event('EV_CONTACTS_MESSAGE', data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user