Fix the contacts app with workers
This commit is contained in:
parent
87dc528a99
commit
bfb850554d
@ -885,7 +885,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
Store.messenger = {
|
Store.messenger = {
|
||||||
getFriendList: function (data, cb) {
|
getFriendList: function (clientId, data, cb) {
|
||||||
store.messenger.getFriendList(function (e, keys) {
|
store.messenger.getFriendList(function (e, keys) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -893,7 +893,7 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getMyInfo: function (data, cb) {
|
getMyInfo: function (clientId, data, cb) {
|
||||||
store.messenger.getMyInfo(function (e, info) {
|
store.messenger.getMyInfo(function (e, info) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -901,7 +901,7 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getFriendInfo: function (data, cb) {
|
getFriendInfo: function (clientId, data, cb) {
|
||||||
store.messenger.getFriendInfo(data, function (e, info) {
|
store.messenger.getFriendInfo(data, function (e, info) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -909,7 +909,7 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
removeFriend: function (data, cb) {
|
removeFriend: function (clientId, data, cb) {
|
||||||
store.messenger.removeFriend(data, function (e, info) {
|
store.messenger.removeFriend(data, function (e, info) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -917,12 +917,12 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openFriendChannel: function (data, cb) {
|
openFriendChannel: function (clientId, data, cb) {
|
||||||
store.messenger.openFriendChannel(data, function (e) {
|
store.messenger.openFriendChannel(data, function (e) {
|
||||||
cb({ error: e, });
|
cb({ error: e, });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getFriendStatus: function (data, cb) {
|
getFriendStatus: function (clientId, data, cb) {
|
||||||
store.messenger.getStatus(data, function (e, online) {
|
store.messenger.getStatus(data, function (e, online) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -930,7 +930,7 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getMoreHistory: function (data, cb) {
|
getMoreHistory: function (clientId, data, cb) {
|
||||||
store.messenger.getMoreHistory(data.curvePublic, data.sig, data.count, function (e, history) {
|
store.messenger.getMoreHistory(data.curvePublic, data.sig, data.count, function (e, history) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
@ -938,14 +938,14 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
sendMessage: function (data, cb) {
|
sendMessage: function (clientId, data, cb) {
|
||||||
store.messenger.sendMessage(data.curvePublic, data.content, function (e) {
|
store.messenger.sendMessage(data.curvePublic, data.content, function (e) {
|
||||||
cb({
|
cb({
|
||||||
error: e,
|
error: e,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
setChannelHead: function (data, cb) {
|
setChannelHead: function (clientId, data, cb) {
|
||||||
store.messenger.setChannelHead(data.curvePublic, data.sig, function (e) {
|
store.messenger.setChannelHead(data.curvePublic, data.sig, function (e) {
|
||||||
cb({
|
cb({
|
||||||
error: e
|
error: e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user