Forum Academy Marketplace Showcase Pricing Features

Trigger last message in chat!

HI! I have a chat function in my app and I have managed to create an autoscroll when I send messages to the recipient but I dont know how to do it the other way around, so that the last message is scrolled down to when I receive a new message.
hope someone can help me!
Thanks!

Hey @stranda

Thanks for the post and great question!

There’s actually a killer thread on this that I would recommend checking out. Here’s the link → How to show the last item in a RG

Looks like the main idea there is having a couple extra fields to track who’s read a message and what the last message was. From there, since you know the last message, you can feed that into the auto scroll action for the repeating group.

Give it a try and don’t hesitate to reach out to us directly at [email protected]