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

Not getting realtime messages #20

Open
rohitbhoite opened this issue May 9, 2020 · 0 comments
Open

Not getting realtime messages #20

rohitbhoite opened this issue May 9, 2020 · 0 comments

Comments

@rohitbhoite
Copy link

realtime messages are not working.

In Chat.dart file inside loadMessagesAndListen() method below condition is present.

query.documentChanges.where((doc) {
return doc.oldIndex <= doc.newIndex;
})

If I reverse the condition then I am able to see the realtime messages

query.documentChanges.where((doc) {
return doc.oldIndex >= doc.newIndex;
})

is this condition correct?

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

1 participant