|
|
|
@ -1458,14 +1458,6 @@ define([
|
|
|
|
|
var getVersionHash = function (clientId, data) {
|
|
|
|
|
var validateKey;
|
|
|
|
|
var fakeNetflux = Hash.createChannelId();
|
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
|
Store.getPadMetadata(null, {
|
|
|
|
|
channel: data.channel
|
|
|
|
|
}, function (md) {
|
|
|
|
|
// XXX not needed? we don't need to validate messages coming from history keeper
|
|
|
|
|
validateKey = md.validateKey;
|
|
|
|
|
});
|
|
|
|
|
}).nThen(function () {
|
|
|
|
|
Store.getHistoryRange(clientId, {
|
|
|
|
|
cpCount: 1,
|
|
|
|
|
channel: data.channel,
|
|
|
|
@ -1484,12 +1476,10 @@ define([
|
|
|
|
|
postMessage(clientId, "PAD_MESSAGE", {
|
|
|
|
|
msg: data.msg,
|
|
|
|
|
user: fakeNetflux.slice(0,16), // fake history keeper to avoid validate
|
|
|
|
|
validateKey: validateKey
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
postMessage(clientId, "PAD_READY");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Store.joinPad = function (clientId, data) {
|
|
|
|
|