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

@@ -83,6 +83,9 @@ define([
store.messenger.updateMyData();
}
var myData = createData(store.proxy);
if (store.proxy.friends) {
store.proxy.friends.me = myData;
}
var todo = function (friend) {
if (!friend || !friend.notifications) { return; }
myData.channel = friend.channel;