Move async store in a webworker!

This commit is contained in:
yflory
2018-05-31 18:22:16 +02:00
parent 8586d0c944
commit b9f5a0f52b
5 changed files with 215 additions and 27 deletions

View File

@@ -828,6 +828,10 @@ define([
var messagingCfg = getMessagingCfg();
Messaging.inviteFromUserlist(messagingCfg, data, cb);
};
Store.addDirectMessageHandlers = function (data) {
var messagingCfg = getMessagingCfg();
Messaging.addDirectMessageHandler(messagingCfg, data.href);
};
// Messenger
@@ -976,7 +980,6 @@ define([
channel.sendMessage(data, cb);
};
// TODO
// GET_FULL_HISTORY from sframe-common-outer
Store.getFullHistory = function (data, cb) {
var network = store.network;
@@ -1233,9 +1236,6 @@ define([
callback(ret);
var messagingCfg = getMessagingCfg();
Messaging.addDirectMessageHandler(messagingCfg);
// Send events whenever there is a change or a removal in the drive
if (data.driveEvents) {
store.proxy.on('change', [], function (o, n, p) {