Deltachat-android: Image shown in wrong day in gallery(all media)

Created on 30 Jan 2019  路  8Comments  路  Source: deltachat/deltachat-android

in a group chat, there was only one picture posted that day, (under the label "Today" as shown in the first screenshot) but in the gallery (all media) two images are shown under the header "today" one of them was from yesterday and isn't shown in the "yesterday" section (see the second screenshot)

chat view:
screenshot_20190126-115158

all media:
screenshot_20190126-115218

bug

Most helpful comment

i would not change the wording, this is just fine. but we can define

  • "today" as "today since midnight"
  • "yesterday" as "yesterday between 00:00 and 24:00"
    and so on.

"this month" being (from today) 13. Jan to 13. Feb is a bit weird.

All 8 comments

could you add the info boxes for both messages? (I need to see the date headers at which it was send and received)

This has most likely to do with the way ConversationActivity and Gallery/Media handle dates. iirc. ConversationActivity shows the stuff in the way the are send (more or less) and Gallery/Media the way they are received.

will do, it is happening again for other two pictures

this screenshots are all from 2 new pictures, the messages details are NOT from the old ones:
today pic:
screenshot_20190131-082713
yesterday pic is shown under today header:
screenshot_20190131-082629
today pic is info:
screenshot_20190131-133547
yesterday pic is info:
screenshot_20190131-082849

Thanks! I will investigate this more, Pic Info helped.

Problem is somewhere here:
org/thoughtcrime/securesms/database/loaders/BucketedThreadMediaLoader.java:88

Okay, now I have it figured out:
"Today" means "Last 24 hours"
"Yesterday" is the 24 hours before that
"This week" means "In the last 7*24 hours until yesterday"
"This month" is the same for 30 days.

I have to think about this.

i would not change the wording, this is just fine. but we can define

  • "today" as "today since midnight"
  • "yesterday" as "yesterday between 00:00 and 24:00"
    and so on.

"this month" being (from today) 13. Jan to 13. Feb is a bit weird.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gitkald picture gitkald  路  5Comments

adbenitez picture adbenitez  路  4Comments

BoFFire picture BoFFire  路  4Comments

csb0730 picture csb0730  路  4Comments

r10s picture r10s  路  4Comments