deltachat-android icon indicating copy to clipboard operation
deltachat-android copied to clipboard

Time values in chat list not refreshed (as time passes by)

Open gerryfrancis opened this issue 3 years ago • 12 comments

  • Android version: Android 11.

  • Device: Fairphone FP2 (Lineage OS 18.1 build RQ3A.210705.001 from 2021-08-06).

  • Delta Chat version: 1.21.2 (latest nightly build).

  • Expected behavior: The time value of the latest sent/received message of each chat increases.

  • Actual behavior: The time value of the latest sent/received message of each chat does not increase. However, new messages are displayed instantly.

  • Steps to reproduce the problem: -- Open an existing chat and send a message. -- Go back to the chat list (overview), and watch the time value for more than one minute. (Result: The value does not change.)

  • Screenshots: N/A.

  • Logs: N/A.

  • Remarks: -- The time values of the blobs within the chat are changed as expected.

gerryfrancis avatar Aug 11 '21 13:08 gerryfrancis

OK, time values in the chat list are refreshed, but only when the Delta Chat app loses focus and gets it back again.

gerryfrancis avatar Aug 11 '21 13:08 gerryfrancis

@gerryfrancis I try to see if it happens to me too. 🤔

ghost avatar Feb 01 '22 18:02 ghost

a timer every minute and an update should fix that; i though, we already added sth. like that, but maybe that was ios or the message list ...

r10s avatar Mar 23 '22 22:03 r10s

@r10s should this go into the reliability project?

Hocuri avatar Mar 24 '22 14:03 Hocuri

@r10s should this go into the reliability project?

makes sense, i added it there.

r10s avatar Mar 24 '22 17:03 r10s

a timer every minute and an update should fix that; i though, we already added sth. like that

Yes, it's here:

https://github.com/deltachat/deltachat-android/blob/de734e941a9d1d54daf71b213259ee81ad227554/src/org/thoughtcrime/securesms/ConversationFragment.java#L129-L134

But probably there is a bug

Hocuri avatar Mar 24 '22 19:03 Hocuri

Hmm, I just tried this out, but couldn't reproduce it for now (neither Fairphone 3, Android 10, nor emulated Pixel 2, Android 11). Can you retry?

Hocuri avatar Mar 30 '22 13:03 Hocuri

@Hocuri The issue still exists, just stay at the chat overview for > 1 minute and you will see that the time values are not refreshed.

gerryfrancis avatar Mar 31 '22 15:03 gerryfrancis

Just tried again, they are still refreshing... (I guess that they are refreshing after 1-2min, so waiting 1min may not be enough, maybe that's the problem?)

Hocuri avatar Apr 01 '22 17:04 Hocuri

Doesn't refresh after hours for me. Android 9.

rrthomas avatar Apr 01 '22 19:04 rrthomas

Weird...

Hocuri avatar Apr 01 '22 19:04 Hocuri

Doesn't refresh after hours for me. Android 9.

I am afraid I have to second that. Apparently, time values may be updated when a message is received, but not when the app does nothing.

@Hocuri Could background services have anything to do with it?

gerryfrancis avatar Apr 02 '22 01:04 gerryfrancis

@gerryfrancis there still this bug?

@AndreaLattmann Yes, unfortunately.

gerryfrancis avatar Apr 06 '23 22:04 gerryfrancis

@adbenitez and me could not reproduce the bug on any of our testphones.

the only thing, we discovered, was that also first update after resuming the chatlist also took 1 minute to happen; this is fixed by #2687

i also double checked that the timer actually updates the list - and that the update is not done randomly by other things.

moreover, #2687 adds more logging - so, if the issue happens again with the upcoming release (no exact release time planned yet), please open a fresh issue with a log and detailed device information 🙏

r10s avatar Sep 30 '23 20:09 r10s

Looks like this issue is solved, many thanks to everyone involved! :)

gerryfrancis avatar Nov 17 '23 13:11 gerryfrancis

puhhh, another 2yo issue closed more permantently :)

thanks for checking and confirming

r10s avatar Nov 17 '23 15:11 r10s