Why can't I return to sending iMessage after a text?

I tried to send a colleague (who I know has an iPhone and can send/receive iMessage) an iMessage but my WiFi connection dropped and my mobile data was turned off. I switched on my mobile data and retried sending the iMessage but the phone sent it as a text message.

Now it seems I can only send him text messages (the green ones). How do I get back to sending him iMessages (the blue ones)? It is irritating as hell because literally two messages earlier I could still send him an iMessage.

I have tried swithing iMessage of and on again, I have also tried switching my iPhone off and on again. Please help.
I've had this happen to me before. What ended up happening was I asked my friend to compose a new iMessage to me, and then our conversation messages started being blue again. I'm not really sure if that's an official fix or not but that has fixed this problem for me more than once.

Original thread: https://forums.imore.com/threads/why-cant-i-return-to-sending-imessage-after-a-text.356871/