As a houseplant fan , my place is full of them, it is a problem.
The fungus is harmless but unsightly, especially when it grows on the outside of clay pots.
The flies too are harmless , just annoying.
House plant specific compost is better for the flies than general purpose.