Skip to content

Not getting realtime messages  #20

@rohitbhoite

Description

@rohitbhoite

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions