User::delete should remove corresponding rows from inbox_messageState when delete user inbox rows
This commit is contained in:
parent
ffea2a2825
commit
8ece5d63c6
1 changed files with 1 additions and 0 deletions
|
|
@ -409,6 +409,7 @@ sub delete {
|
||||||
$db->write("DELETE FROM userSession WHERE userId=?",[$userId]);
|
$db->write("DELETE FROM userSession WHERE userId=?",[$userId]);
|
||||||
|
|
||||||
# remove inbox entries
|
# remove inbox entries
|
||||||
|
$db->write("DELETE FROM inbox_messageState WHERE userId=?",[$userId]);
|
||||||
$db->write("DELETE FROM inbox WHERE userId=? AND (groupId IS NULL OR groupId='')",[$userId]);
|
$db->write("DELETE FROM inbox WHERE userId=? AND (groupId IS NULL OR groupId='')",[$userId]);
|
||||||
|
|
||||||
# Shop cleanups
|
# Shop cleanups
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue