mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
delete unread chats on account delete
This commit is contained in:
@@ -92,6 +92,9 @@ module.exports = function(User) {
|
|||||||
function(next) {
|
function(next) {
|
||||||
db.delete('uid:' + uid + ':chats', next);
|
db.delete('uid:' + uid + ':chats', next);
|
||||||
},
|
},
|
||||||
|
function(next) {
|
||||||
|
db.delete('uid:' + uid + ':chats:unread', next);
|
||||||
|
},
|
||||||
function(next) {
|
function(next) {
|
||||||
db.delete('uid:' + uid + ':ip', next);
|
db.delete('uid:' + uid + ':ip', next);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user