-
Notifications
You must be signed in to change notification settings - Fork 270
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
A new room created by a new user sometimes contains duplicated timeline items #4758
Comments
Thanks, can you give us something actionable at the SDK level, since it's unclear this is a SDK bug, at this point: rageshake, Rust logs, or even better, a regression (integration) test? |
Here are the logs from my dev Android Studio. Small-Phone-API-35-Android-15_2025-03-07_091140.txt In the above log, I start a chat with one user I can't provide anything directly actionable: I don't know whether this is an SDK bug, but it seems likely since the behaviour is identical in EXA and EXI. Further, when I tried to track this in the debugger, I found that the When I thought that my change had caused this problem, I wrote |
(Feel free to move this item somewhere else if it's more appropriate) |
A rageshake from my dev Android build is at https://github.com/element-hq/element-x-android-rageshakes/issues/4623 |
Note: this only happens sometimes. I estimate about 50% of the time.
(The same thing happens if you use Element X iOS instead of Element X Android.)
I investigated this a bit and found that the duplicated items are provided via the
initial_values
fromTimelineSubscriber
, so they must be part ofstate.items
withinmatrix_sdk_ui::timeline::controller::TimelineController::subscribe
. I don't know why they appear, but I suspect we are updating the timeline in 2 different ways simultaneously, and some kind of race is happening.(Found while testing https://github.com/element-hq/crypto-internal/issues/398 .)
The text was updated successfully, but these errors were encountered: