Since most RV toilets are the gravity type, i.e. the stuff just drops directly down a pipe into the tank, there is no P-trap to keep odors and insects out. Sewer flies can be a problem, and they are fairly common in campground waste water systems. If they get into your waste tanks, you carry the problem around with you (and spread it to other campgrounds). It's a good practice to have a hump in your sewer dump hose to form a trap to keep bugs in the septic system out of the RV's tanks. This is especially helpful if you stay hooked to the sewer line with the dump valve open (gray or black).
You should have water in the bowl and for that reason most RV toilets are designed to run a bit of water after the flush valve closes. It keeps the seal moist, avoids dried crud interfering with the seal, and provides a warning about a seal leak (the water runs out).
To get rid of sewer flies, flush both gray and black tanks thoroughly. If possible, fill both tanks and add a dose of septic tank treatment, e.g. Roebic K37, RidX, etc. and let it work for 3-4 days before dumping. That will reduce the slime where the flies hatch their eggs. Once the tanks are as clean as practical, spray insecticide inside the waste tanks/line as best you can and maybe add a liquid pesticide as well. The flies themselves are short-lived, but multiple generations of eggs are buried in the slime in the tanks and keep hatching out, so you need to kill & re-kill every few days over a 2-3 week period.