Remove forgotten rooms from the view

This commit is contained in:
miruka
2019-07-07 22:19:17 -04:00
parent 47327c64cf
commit b02fc11903
9 changed files with 26 additions and 20 deletions

View File

@@ -79,9 +79,8 @@ function onRoomUpdated(
}
function onRoomDeleted(user_id, category, room_id) {
var roles = {"userId": user_id, "roomId": room_id, "category": category}
rooms.popWhere(roles, 1)
function onRoomForgotten(user_id, room_id) {
rooms.popWhere({"userId": user_id, "roomId": room_id})
}