element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.39k stars 731 forks source link

Accepting new DMs does not show any messages sent with the invite #5212

Open sethforprivacy opened 2 years ago

sethforprivacy commented 2 years ago

Steps to reproduce

  1. Accept invite for new DM
  2. Initial messages sent with the request never load on mobile, but show on desktop

Outcome

What did you expect?

Accepting the DM would load all initial messages as well as accept the invite.

What happened instead?

I accepted the invite and was presented with a blank history devoid of join, leave, or messages.

Your phone model

Pixel 6

Operating system version

CalyxOS 3.2.0 (Android 12)

Application version and app store

1.3.18, F-Droid

Homeserver

optoutpod.com

Will you send logs?

Yes

sethforprivacy commented 2 years ago

Bug report from the app has also been sent.

ouchadam commented 2 years ago

marking as uncommon whilst there's no other reports (haven't tried to reproduce the issue locally yet)

ouchadam commented 2 years ago

Assuming I've understood the problem and the steps correctly, I'm unable to reproduce the issue, in the screenshots below you can see that I've invited a user to a room, sent multiple messages and then joined the room from the other user and am able to see the sent messages from before I accepted the invite

WEB ANDROID
2022-02-17T10:08:19,843894698+00:00 2022-02-17T10:08:39,485025816+00:00
sethforprivacy commented 2 years ago

@ouchadam Feel free to DM me (https://matrix.to/#/@sethforprivacy:matrix.optoutpod.com) and send a few messages and I'll screen record the behavior on Android for me.

jcgruenhage commented 2 years ago

I thought to myself that this is common enough to be a known problem.. I've seen this happen for months, with quite a few reports by others that have reached me as well... fwiw, CC&R fixes it, but still a major annoyance, especially with big accouts where syncing from scratch takes a while.

jcgruenhage commented 2 years ago

Okay, so I've talked to a few people about this and it happens to quite a few people, spread over multiple servers, with F-Droid and the Play Store both showing up as sources where people experiencing this got the app from.

I also looked into a theory that this is related to hiding encrypted history that can't be decrypted (not being able to read pre-invite history is expected, so hiding that if the keys can't be found is something that Element does iirc). To test that theory, I've created an unencrypted room with my entropia.de account and invited my gruenhage.xyz account, and it also happened there, so: not limited to DMs, not limited to encrypted rooms.

Edit: Just sent a bug report from the app as well, including the room ID of the non-encrypted room I've talked about above

kittykat commented 2 years ago

We saw this when reaching out to people for the mobile experiments

ericdecanini commented 2 years ago

I tried reproducing this but to no avail with results pretty much identical to @ouchadam. I want to rule out the possibility that this only occurs on other homeservers so I reached out to the community to gather more context on this. Will park this issue until then

sethforprivacy commented 2 years ago

Sent a screen recording in DMs to @ericdecanini (it contains some private chats so I won't post it here) so he can validate the issue I'm having.

It is very much still a problem on Element 1.4.16 on Android.