Validate messages not coming from history-keeper

This commit is contained in:
yflory
2018-04-10 15:10:28 +02:00
parent 2381dd0e39
commit e37aab492b
4 changed files with 19 additions and 8 deletions

View File

@@ -918,8 +918,12 @@ define([
channel.data = padData || {};
postMessage("PAD_READY");
}, // post EV_PAD_READY
onMessage: function (m) {
postMessage("PAD_MESSAGE", m);
onMessage: function (user, m, validateKey) {
postMessage("PAD_MESSAGE", {
user: user,
msg: m,
validateKey: validateKey
});
}, // post EV_PAD_MESSAGE
onJoin: function (m) {
postMessage("PAD_JOIN", m);