What I’d like to compare is the last message from a RepeatingGroup and the LATEST message that the user has sent.
If the LATEST message sent and the last message that is on the list both have the same ‘OrgId’ then, the logo and the name of that user won’t be shown.
I am trying to improve our in-app messaging system and one thing to make it look a lot cleaner is by eliminating the Logos, names if MULTIPLE MESSAGES were sent by the same user consecutively.
this is what I did to show the tip of the speech bubble only on the first message.
search for all the messages in the conversation that was created before this message, sort it by creation date, and check if the latest message’s creator is the same as this message, and only if not - show the tip of the bubble
I’m planning on implementing something similar soon. My first approach is going to be incorporating the expression element from toolbox plugin and place it into the RG to set the expression to look at the previous cells message.