Error updating presence: relation "public.profiles" does not exist , Heartbeat failed: relation "public.profiles" does not exist, Incremental sync failed: relation "public.chat_members" does not exist
The database tables still don't exist. Let me create a simplified initialization script that will ensure all the necessary tables are created properly:
I've created a comprehensive initialization script that will create all the necessary database tables, functions, and policies in one go. This should resolve all the "relation does not exist" errors you're encountering.
The script includes:
Please run this script first, and it should resolve all the database-related errors you're seeing.
Same Name List Give In Find People to Chat With "search engine"
I understand you want to see a list of people with the same name in the "Find People to Chat With" search functionality. Let me enhance the user search to better handle and display users with similar names.
I've enhanced the user search functionality to better handle people with the same names by:
This will make it much easier to distinguish between users who have the same name by showing their email addresses and organizing them in a clear, grouped format.
The code returns the following error:
Error updating presence: relation "public.profiles" does not exist
at DatabaseService.updateUserPresence (/lib/database)
Revise the code to address the error.
I was previewing: /