After I restricted the rules to
"messages": {
".read": "auth != null && root.child('chats').child($chatId).child('members').child(auth.uid).exists()",
"$msgId": {
".write": "auth != null && root.child('chats').child($chatId).child('members').child(auth.uid).exists() && newData.child('text').isString() && newData.child('senderName').isString() && newData.child('createdAt').isNumber()"
},
".indexOn": ["createdAt"]
}
}
},
the html is no longer working can you help I have been trying to solve this problem for more than a week and I have not been able to