Skip to content
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

Open
itsosmx opened this issue Jan 30, 2021 · 6 comments
Open

can not send up to 25 message #16

itsosmx opened this issue Jan 30, 2021 · 6 comments

Comments

@itsosmx
Copy link

itsosmx commented Jan 30, 2021

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

@CharlieGroves
Copy link

I am having the same issue

@CharlieGroves
Copy link

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!

@sellareddy18
Copy link

yea it is because there is limit in the video as well that you cannot send more than 25 messages at once

@karljohan122
Copy link

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?

@CharlieGroves
Copy link

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.

@karljohan122
Copy link

karljohan122 commented Sep 15, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants