Support staff communicate with customers through the same chat system that customers use — no separate tool is required. Any user whoseDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/La-casa-del-bordadito/llms.txt
Use this file to discover all available pages before exploring further.
esSoporte flag is true in Realtime Database appears in the customer’s contact list as an available support agent. From their own device, staff see the full list of all registered users and can open a conversation with any of them.
Accessing the chat list
Staff can reachListaChatActivity from Cuenta → Configuración → Soporte Chat:
ListaChatActivity opens, it first checks whether the current user is a support agent:
- Support staff (
soySoporte = true) — see every registered user so they can respond to anyone. - Regular customers (
soySoporte = false) — see only users whereesSoporte = true, effectively limiting their contact list to official staff accounts.
Responding to a customer
Open the chat list
Navigate to Cuenta → Configuración → Soporte Chat. All users are listed, ordered alphabetically by name.
Chat storage path
Each conversation lives at a path derived from the two participants’ UIDs, sorted alphabetically and joined with an underscore:Unread message badges
ChatsUnreadCount tracks how many unread messages each conversation has for the current user. The counter is displayed as a badge on the user row in ListaChatActivity:
Online status
The app automatically setsUsuarios/{uid}/online to true when the app comes to the foreground and false when it goes to the background or is closed. Support staff can use this to tell at a glance whether a customer is currently active.
Blocking a disruptive user
Support staff can block a customer by long-pressing their row inListaChatActivity. The option only appears when soySoporte = true and the target is not a support agent themselves. Confirming the action:
-
Writes
Usuarios/{myUid}/usuariosBloqueados/{blockedUid} = truein Realtime Database. -
Sends an automated chat message to the customer’s conversation:
”🚫 Has sido bloqueado por el personal de soporte. No podrás enviar más mensajes.”
ChatActivity then detects the block and displays a banner:
usuariosBloqueados/{blockedUid} node.
In-app popup notifications
When a new message arrives while support staff is on a different screen of the app, aPopupWindow slides in from the top-right corner of MainActivity. It shows the sender’s name, a preview of the message (or ”📷 Imagen Enviada” for image messages), and auto-dismisses after 4 seconds. Tapping the popup navigates directly to that customer’s ChatActivity.