Improve mute/unmute process

This commit is contained in:
yflory
2019-12-13 18:22:14 +01:00
parent aa8dd95310
commit e8c1eb9f11
8 changed files with 124 additions and 93 deletions

View File

@@ -1253,10 +1253,6 @@ define([
if (friend) { return void cb({error: 'ALREADY_FRIEND'}); }
if (!data.notifications || !data.curvePublic) { return void cb({error: 'INVALID_USER'}); }
// Unmute this user when we send them a friend request
var muted = store.proxy.mutedUsers || {};
delete muted[data.curvePublic];
store.proxy.friends_pending = store.proxy.friends_pending || {};
var twoDaysAgo = +new Date() - (2 * 24 * 3600 * 1000);