don't use common-realtime
This commit is contained in:
parent
32e8c8ef4b
commit
b5b9f931c7
@ -3,8 +3,7 @@ define([
|
|||||||
'/bower_components/chainpad-crypto/crypto.js',
|
'/bower_components/chainpad-crypto/crypto.js',
|
||||||
'/common/curve.js',
|
'/common/curve.js',
|
||||||
'/common/common-hash.js',
|
'/common/common-hash.js',
|
||||||
'/common/common-realtime.js'
|
], function ($, Crypto, Curve, Hash) {
|
||||||
], function ($, Crypto, Curve, Hash, Realtime) {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
var Msg = {
|
var Msg = {
|
||||||
inputs: [],
|
inputs: [],
|
||||||
@ -242,7 +241,7 @@ define([
|
|||||||
if (!proxy.friends) { return; }
|
if (!proxy.friends) { return; }
|
||||||
var friends = proxy.friends;
|
var friends = proxy.friends;
|
||||||
delete friends[curvePublic];
|
delete friends[curvePublic];
|
||||||
Realtime.whenRealtimeSyncs(common, realtime, cb);
|
common.whenRealtimeSyncs(realtime, cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
var pushMsg = function (channel, cryptMsg) {
|
var pushMsg = function (channel, cryptMsg) {
|
||||||
@ -472,7 +471,7 @@ define([
|
|||||||
channel.wc.bcast(cryptMsg).then(function () {
|
channel.wc.bcast(cryptMsg).then(function () {
|
||||||
delete friends[curvePublic];
|
delete friends[curvePublic];
|
||||||
delete channels[curvePublic];
|
delete channels[curvePublic];
|
||||||
Realtime.whenRealtimeSyncs(common, realtime, function () {
|
common.whenRealtimeSyncs(realtime, function () {
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user