Mai ignored Riven's words saying that Thomas might also like her, she was more focused on the fact that Riven knew that she liked Thomas. Mai never said about her feelings to anyone, no one. No one knows about this except herself and God of course. At most, she just vents in her diary. Mai choked again like being struck by lightning in broad daylight.
Her diary! It felt like a long time ago and Mai had forgotten about it. Once her diary was lost and Aaron found it. At that time Aaron said he didn't read it and Mai believed him but now suddenly Riven knows what he shouldn't know. Uh wait, Aaron also teased Rara's engagement party when he said Mai was jealous of seeing Thomas dancing with Linda.
Remembering all that happened is like a piece of a puzzle that came together. Well, how else would Riven know all this if not from Aaron? They are cousins and they live together. And how else would Aaron know that if not from her diary?