How to know if a specific repeating group cell is visible to the user

We have what could best be described solution-wise as a chat app, with both DM’s and group conversations (similar to Slack).

I have one thing I haven’t been able to solve in a good and efficient way so reaching out here to see if anyone has any good ideas.

If a user is a way for some days, they could come back to 20+ unread messages in a channel. But when they open the channel, they will typically only see maybe the last 2-5 (depending on screen size, message size etc).

I need to create a reading receipt for each user and each message, so that the author of the message can see who read their message.
The only way to be 100% certain of this (afaik) is to launch some "create receipt event/wf) when the specific message comes into view in the repeating group (or is visible at initial loading).

I have tried different approaches to solve this but none that is 100% reliable.

How would you solve this?

One way to comes to mind is to add a couple of steps.
add an extra field into the message database called read. This stores the user who read the message.
next set a state to show if a message has been read or not. unread messages could have a different colour or opacity. this would apply to Current Cell of the RG.
that’s one direction of travel that I would take

Thanks!
Storing and showing whether something is read I have a fairly good solution to (I have an entity called reading receipts, which is aggregated to a number and stored on the message, for performance reasons).

The problem is how to trigger the “create receipt” only for the messages that is actually visible on the users screen.

I have one solution tried out with a plugin placed in all RG cells, that should trigger only when it is visible, but it’s only 90% reliable (give or take)

if you are finding it 90% reliable then you are almost there. perhaps it is just a matter of putting on your sherlock holmes deerstalker hat and finding out what’s causing the 10% discrepancy. That can take forever. which plugin are you using?

zeroqodes, and they confirmed it is actually working as expected with 100% reliability on cells that BECOMES visible, but not on cells that are visible on load. So the use-case is aligned with a RG that only should show 1 item at a time.

I improved it some by adding a random time when executing WFs but it is still not 100%

This topic was automatically closed after 70 days. New replies are no longer allowed.