Chore: code cleaning
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder