Chore: code cleaning

This commit is contained in:
Grail Finder
2025-07-08 10:17:32 +03:00
parent ce5d55cc13
commit 9a0e8d01ba
5 changed files with 7 additions and 67 deletions

View File

@ -88,17 +88,10 @@ func HandleExit(w http.ResponseWriter, r *http.Request) {
creatorLeft = true
}
exitedRoom := fi.ExitRoom()
// if err := saveRoom(exitedRoom); err != nil {
// abortWithError(w, err.Error())
// return
// }
if creatorLeft {
if err := repo.RoomDeleteByID(r.Context(), exitedRoom.ID); err != nil {
log.Error("failed to remove room", "error", err)
}
// removeRoom(exitedRoom.ID)
// TODO: notify users if creator left
// and throw them away
notify(models.NotifyRoomListUpdate, "")
}
// scary to update the whole room