Don't send user updates to friends via chat if you know their mailbox

This commit is contained in:
yflory
2019-09-02 18:19:56 +02:00
parent 772ecb7365
commit d190b8acd0
3 changed files with 18 additions and 6 deletions

View File

@@ -153,6 +153,9 @@ define([
Object.keys(msg.content).forEach(function (key) {
friend[key] = msg.content[key];
});
if (ctx.store.messenger) {
ctx.store.messenger.onFriendUpdate(curve, friend);
}
ctx.updateMetadata();
cb(true);
};