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

Messages that are sent from different users at almost the same time appears in incorrect order #1987

Closed
1 task done
utopicnarwhal opened this issue Jul 17, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@utopicnarwhal
Copy link

Which packages are you using?

stream_chat_flutter, stream_chat_localizations

On what platforms did you experience the issue?

iOS, Web

What version are you using?

stream_chat_flutter:
dependency: "direct main"
description:
name: stream_chat_flutter
sha256: "0286ef445645d7f6af74bdc2a5dd7664269336dd1d0f4b1d2b84c58aab8cbf77"
url: "https://pub.dev"
source: hosted
version: "6.12.0"
stream_chat_localizations:
dependency: "direct main"
description:
name: stream_chat_localizations
sha256: "518bc171b3621b17d60a816f42132cb3b1f4fe72975137dd2506470f7f183d23"
url: "https://pub.dev"
source: hosted
version: "5.12.0"

What happened?

example.mov

The messages are in different order for both of users. I expected to have the same message order for both of them.

Steps to reproduce

1. Run [the official sample app](https://github.com/GetStream/flutter-samples/tree/016d7ae4eff22e61cbad97c957d62b7164db2048/packages/stream_chat_v1) on two devices.  
2. Select different users on different devices.  
3. Open chat with each other.  
4. Type the different messages to the fields.
5. Try to send the messages at the same time.

Supporting info to reproduce

I reproduced it also with the latest Flutter and package versions as well. For the example video I've used Flutter v3.10.6

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@utopicnarwhal utopicnarwhal added the bug Something isn't working label Jul 17, 2024
@utopicnarwhal
Copy link
Author

.

Copy link

This issue is stale because it has been open for 20 days with no activity.

@github-actions github-actions bot added the Stale label Aug 18, 2024
@utopicnarwhal
Copy link
Author

bump

@github-actions github-actions bot removed the Stale label Aug 18, 2024
Copy link

github-actions bot commented Sep 8, 2024

This issue is stale because it has been open for 20 days with no activity.

@github-actions github-actions bot added the Stale label Sep 8, 2024
@utopicnarwhal
Copy link
Author

bump

@github-actions github-actions bot removed the Stale label Sep 8, 2024
@dvmatyun
Copy link

I experienced and reported this issue with incorrect messages order in stream chat for like over a year now, how hard can that be for a multi-million company to fix it's core functionality lol?

@FrogMustang
Copy link

FrogMustang commented Oct 1, 2024

Also not stale.... still happening.

Same as this one
#1775

Copy link

This issue is stale because it has been open for 20 days with no activity.

@github-actions github-actions bot added the Stale label Oct 21, 2024
@utopicnarwhal
Copy link
Author

bump

@github-actions github-actions bot removed the Stale label Oct 22, 2024
@xsahil03x
Copy link
Member

This isn't really an error but the expected behaviour. We always sort the messages by the local createdAt time and for both of the devices their own message createdAt is earlier then the one received from the server. This was done to maintain the order while sending multiple messages in a short duration.

More info can be found in the issue and PR below.

Issue: #1293 PR: #1616

@xsahil03x xsahil03x closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants