Improve mute/unmute process
This commit is contained in:
1 parent
aa8dd95310
commit
e8c1eb9f11
8 files changed
+124
-93
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user