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

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

No files matched your search

+3
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);
};