In my text this is given as a correct answer of reported speech:
Me dijo se alegraba de que pudiera ir con ellos a la función.
Why is it not required to have the connector "que" after the word "dijo"? Is it really optional? Shouldn't it be "Me dijo que se alegraba"?