Let $G$ be a compact group and $C(G)$ be the set of continuous functions on $G$. Define the convolution of two functions $f_1,f_2 \in C(G)$ as $$ f_1 * f_2 := \int_{G} f_{1}(gh^{-1})f_2(h) dh$$ then with respect to above convolution $C(G)$ forms a ring.
Claim : $C(G)$ contains a unit element iff $G$ is finite.
My effort: I could prove the reverse direction by defining the unit as
$$ \delta_{e}(g)= \begin{cases} 1 & g=e\\ 0 & \text{otherwise} \end{cases} $$ Then it is easy to see that $f*\delta_{e}= f = \delta_{e}*f$.
For the forward direction (by contradiction): Suppose $G$ is a compact group and $\exists $ a unit $\delta$ in $C(G)$ such that $f*\delta= f = \delta*f$. Then, we would like to show that $\delta(g) =0 $ $\forall g \in G$. So, assume that $\exists$ $x \in G$ such that $\delta(x) \neq 0$. Since $\delta \in C(G)$ i.e. it is a continuous function implies that $\exists$ a symmetric neighbourhood $U_{x}$ of $x$ such that $\delta $ takes non-zero values on $U_{x}$. Now, by definition of convolution, we can write $$ |(f* \delta) (x) - \int_{U_{x}} f(xh^{-1}) \delta(h) dh| $$ After this step I am not understanding how to go further for showing that $\delta$ is identically zero. Thanks in advance! any help would be appreciated!