© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
lewisd

Anyone have any recommendations on how would you track whether a user has read a message or not?

I'm building a chat app and need to track which messages from various conversations the logged in user hasn't read yet.

I've seen a few ways of doing this already online.

1. Check the last time the user was active, then check all the conversation messages that have been sent past that time and use this as a count to show unread messages.
2. I didn't fully understand what they meant with this one, but something along the lines of creating another table called
read_user_messages
read_user_messages
and create a link to all the messages they've read?

Please find my current db design attached
Untitled.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How would you disable a supabase user (as opposed to removing it)?
SupabaseSSupabase / help-and-questions
4y ago
how do you distinguish whether the user is registering first time or not?
SupabaseSSupabase / help-and-questions
3y ago
I have a website and a mobile app. How would you structure verification emails?
SupabaseSSupabase / help-and-questions
4y ago
Check whether or not supabase channel has connected?
SupabaseSSupabase / help-and-questions
4y ago