Friend button in the userlist

This commit is contained in:
yflory
2017-07-05 15:59:36 +02:00
parent 8dc8aa27ab
commit bf17ad3f1e
4 changed files with 46 additions and 6 deletions

View File

@@ -200,7 +200,8 @@ types of messages:
return sendMsg(ctx, data, cb);
};
network.on('message', function (msg) {
network.on('message', function (msg, sender) {
if (sender !== network.historyKeeper) { return; }
onMsg(ctx, msg);
});
@@ -305,6 +306,7 @@ types of messages:
};
network.on('message', function (msg) {
if (sender !== network.historyKeeper) { return; }
onAnonMsg(ctx, msg);
});