Element-android: Sending a message into a room seems to take a long time

Created on 24 Feb 2020  路  4Comments  路  Source: vector-im/element-android

I tried sending a message into both an encrypted and nonencrypted room and the message send time was over a minute.

The feedback for pending messages was also odd, as after sending a message, nothing appeared on screen to confirm it was sending. Eventually after ~15s a grey copy of the message appeared, and a little while later it was sent.

What are the rules for showing a local echo representation of a message? Because it feels like one should be shown immediately to the user

local-echo

Most helpful comment

I'm not sure whether this is the same issue, but in my case the message appears but remains grey for a long time (on the order of several seconds). At first I thought this was just synapse being slow, but talking on the same server from Element Desktop ungreys messages in almost no time at all.

I tried intercepting Element Android's traffic using mitmproxy and the ungreying does not seem to correlate to any HTTP response. Looking at logcat, the ungreying also happens a significant amount of time after the appearance of lines like this one:

09-18 10:21:14.379  9963 10237 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=8238de7f-a733-4e28-abe6-a4ddac91762e, tags={ org.matrix.android.sdk.internal.session.room.send.SendEventWorker, MatrixSDK-7f7bcd9ec91c44bf7b8aed35bf2c58ba } ]

Upon which event does the client ungrey the message?

All 4 comments

I testing today on RiotX 0.16.0 (gplay):

  1. Set "on" airplane mode
  2. send "test1" to non encripted room
  3. send "test2" to this room
  4. send "test3" to this room
  5. In chat I do not see this messages.
  6. This messages showing (as grey) in chat after ~10 seconds of waiting. Also show "connectivity to server has been lost" splash at this time.
  7. If I disable "airplane mode" - and messages was sended.

Such situation was when I was in area with bad network connectivity:
I send text to chat - and not see it in chatroom. I try send again... And after ~10 seconds I see that I sent two some messages. This is bad.

I think sended messages must be added to chat window immediately after user press "send button" as greyed. After this riotx must be check network, try send and e.t.c. When message was success sended to server - after that it can become white from grey.

The database is blocked and this will be improved

I'm not sure whether this is the same issue, but in my case the message appears but remains grey for a long time (on the order of several seconds). At first I thought this was just synapse being slow, but talking on the same server from Element Desktop ungreys messages in almost no time at all.

I tried intercepting Element Android's traffic using mitmproxy and the ungreying does not seem to correlate to any HTTP response. Looking at logcat, the ungreying also happens a significant amount of time after the appearance of lines like this one:

09-18 10:21:14.379  9963 10237 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=8238de7f-a733-4e28-abe6-a4ddac91762e, tags={ org.matrix.android.sdk.internal.session.room.send.SendEventWorker, MatrixSDK-7f7bcd9ec91c44bf7b8aed35bf2c58ba } ]

Upon which event does the client ungrey the message?

I can consistently reproduce what @dkasak described too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

2011 picture 2011  路  3Comments

TR-SLimey picture TR-SLimey  路  3Comments

Kekun picture Kekun  路  3Comments

532910 picture 532910  路  3Comments

Bubu picture Bubu  路  3Comments