Remove test code

This commit is contained in:
yflory
2019-05-27 17:55:28 +02:00
parent 2e96f13d0c
commit 5512d1fab7
3 changed files with 0 additions and 43 deletions

View File

@@ -639,27 +639,6 @@ define([
// Set the display name (username) in the proxy
Store.setDisplayName = function (clientId, value, cb) {
if (store.mailbox && store.proxy.friends) {
// XXX test mailbox, should be removed in prod
/*store.mailbox.post('notifications', 'NAME_CHANGED', {
old: store.proxy[Constants.displayNameKey],
new: value
});
Object.keys(store.proxy.friends).forEach(function (curve) {
var f = store.proxy.friends[curve];
if (!f.notifications) { return; }
store.mailbox.sendTo('NAME_CHANGED', {
old: store.proxy[Constants.displayNameKey],
new: value
}, {
channel: f.notifications,
curvePublic: curve
}, function (obj) {
if (obj && obj.error) { return void console.error(obj.error); }
console.log('notif sent to '+f);
});
});*/
}
if (store.modules['profile']) {
store.modules['profile'].setName(value);
}