Friend button in the userlist
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user