-
-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not send up to 25 message #16
Comments
I am having the same issue |
Use .limitToLast(25) instead of .limit(25) if you are having this issue. Someone in the comments of the video figured that out. Hope you see this! |
yea it is because there is limit in the video as well that you cannot send more than 25 messages at once |
Well an easy fix for that is just to remove the .limit(25) from the query constant. I don't get how nobody figured this out? |
Karl, the issue was the app only showing the oldest 25 messages when using .limit(25) whereas it shows the 25 most recent messages using .limitToLast(25). Of course you can change 25 to any number but that wasn't the issue, the issue was it showing older messages rather than the latest messages. |
No, yes I get that it would show only the older 25 messages but I don't get why you would even limit them in the first place? It still stores the messages in Firestore but won't display them, just taking up unnecessary space in Firestore. Is this some part of the design that I just don't get? I was having the same issue with the chat just displaying only the older 25 messages so I just decided to remove the limit. |
after send 25 message the new messages stored on the database but the problem is there is no new divs created or anything happen in the chat box and there is no errors
The text was updated successfully, but these errors were encountered: