tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

Cache bug is back

Open guimard opened this issue 1 year ago • 26 comments

Description

Same as #2453, back for a week

Version 0.11.4001

guimard avatar Jun 10 '24 02:06 guimard

Xavier, ca se produit toujours? Ou c'est fixe?

chibenwa avatar Jun 13 '24 13:06 chibenwa

Xavier, ca se produit toujours? Ou c'est fixe?

Bug still active, message deleted or read on Thunderbird are still present in mobile app as "unread". I disconnect and reconnect, bug is still there with new messages

guimard avatar Jun 13 '24 13:06 guimard

  • [x] Can not reproduce in iOS: cache and list of message in mailbox are updated well after delete or read message in Thunderbird
  • [ ] Android

hoangdat avatar Jun 14 '24 01:06 hoangdat

  • [x] Can not reproduce in iOS: cache and list of message in mailbox are updated well after delete or read message in Thunderbird
  • [x] Android

Tested on mobile platform (iOS: 17.5.1 | Android Emulator 14). The problem cannot be reproduced. It still synchronizes well when performing mark as read/ move/ delete emails

dab246 avatar Jun 14 '24 10:06 dab246

  • [x] Can not reproduce in iOS: cache and list of message in mailbox are updated well after delete or read message in Thunderbird
  • [x] Android

Tested on mobile platform (iOS: 17.5.1 | Android Emulator 14). The problem cannot be reproduced. It still synchronizes well when performing mark as read/ move/ delete emails

Most of the problem comes when Thunderbird executes automatic filters (deleting notifications from migration). When there is a lot, problem appear.

Let's keep this issue behind the scene to see if it come back for someone else

guimard avatar Jun 15 '24 03:06 guimard

  • [x] Can not reproduce in iOS: cache and list of message in mailbox are updated well after delete or read message in Thunderbird
  • [x] Android

Tested on mobile platform (iOS: 17.5.1 | Android Emulator 14). The problem cannot be reproduced. It still synchronizes well when performing mark as read/ move/ delete emails

Most of the problem comes when Thunderbird executes automatic filters (deleting notifications from migration). When there is a lot, problem appear.

Let's keep this issue behind the scene to see if it come back for someone else

Yes, I also think so, this problem can be caused by many accompanying conditions so we need time to research it.

dab246 avatar Jun 17 '24 02:06 dab246

Hi, I still have this issue, this render Tmail app difficult to use

guimard avatar Aug 21 '24 03:08 guimard

Hi @guimard,

  • Can you describe more details on your setup in Thunderbird? And your behavior, you always do with it? I will try to do the same in my local

You said:

I disconnect and reconnect, bug is still there with new messages

What is disconnect? You mean: close the app and open again, or log out?

hoangdat avatar Aug 21 '24 04:08 hoangdat

Really nothing special. I'm connected using Thunderbird and my phone, nothing else.

It seems that when phone app is off (sleeping), part of messages deleted during this period using Thunderbird stay inside Tmail cache and then continue to appear.

I just changed phone, same issue. Only disconnect/reconnect purges messages.

When I open such message on app, their state never change (stays unread, unable to delete,...)

guimard avatar Aug 21 '24 04:08 guimard

I think @chibenwa encountered the same issue

guimard avatar Aug 21 '24 05:08 guimard

Try to reproduce:

  • enable rule filter of Thunderbird
  • join in app in mobile device
  • send mail to this account
  • testing more the synchronization of app,

hoangdat avatar Aug 27 '24 02:08 hoangdat

hi @guimard , you also have the message filter in Thunderbird like below and have issue. Am I right? Image

hoangdat avatar Oct 18 '24 14:10 hoangdat

hi @guimard , you also have the message filter in Thunderbird like below and have issue. Am I right?

Hi @hoangdat : no more filter but still the bug

guimard avatar Oct 18 '24 15:10 guimard

new message comes, you will expunge it in thunderbird, then open tmail mobile -> this email still be in Inbox with unread state

hoangdat avatar Dec 18 '24 07:12 hoangdat

Not all deleted messages, part of them only. But then I can't delete them on app, neither mark them as read. They stay until I disconnect mobile app

guimard avatar Dec 18 '24 07:12 guimard

Sometimes , a lot of changes occur, so Email/get can not get all the thing, so cache will be not update well. And mobile app will have a hard refresh to make cache will be reset to synchronize again. All the details were addressed here https://github.com/linagora/tmail-flutter/issues/3507#issuecomment-2771327788. Please try and feedback about it.

hoangdat avatar Apr 28 '25 02:04 hoangdat

@hoangdat update the status of this ticket here please.

chibenwa avatar Jul 03 '25 07:07 chibenwa

Changed DB to well handled multiple access on Hive (local DB) Under testing in Internal Test of store: v0.16.4

hoangdat avatar Jul 03 '25 07:07 hoangdat

Bug still exists in 0.16.4

guimard avatar Jul 04 '25 16:07 guimard

Bug still exists in 0.16.4

What is the case of missing in mobile? Or still available in mobile but not in web?

hoangdat avatar Jul 04 '25 16:07 hoangdat

Bug still exists in 0.16.4

What is the case of missing in mobile? Or still available in mobile but not in web?

Dropped with Thunderbird, OK with web, still present in mobile app

guimard avatar Jul 05 '25 06:07 guimard

You still not see the update if you open app again?

Does it always? Or sometime?

Mobile app in background or foreground when you drop things in thunderbird?

In mobile, we tried to debounce (2s) refreshing app realtime. When you open app again, maybe take a little time to see the updating.

hoangdat avatar Jul 05 '25 06:07 hoangdat

You still not see the update if you open app again?

No, but behavior changed a little. Inside mobile app:

  • I can see some mails deleted by Thunderbird (not all, looks random)
  • When opening such deleted messages, they are marked as read
  • When restarting mobile app, this message is no more marked as read
  • When click on "trash", message isn't deleted and I'm back to Inbox display

Does it always? Or sometime?

Often but not for all deleted messages

Mobile app in background or foreground when you drop things in thunderbird?

Bug happens only when app in background

In mobile, we tried to debounce (2s) refreshing app realtime. When you open app again, maybe take a little time to see the updating.

Even after 1 day, still same bug. This is totally stable, when a mail is buggy displayed, it will be displayed always

guimard avatar Jul 05 '25 10:07 guimard

@guimard fixed? Can be closed?

chibenwa avatar Oct 03 '25 10:10 chibenwa

@guimard fixed? Can be closed?

Not fixed but behavior change. After few days, mailbox on phone is OK, so bug happens around each week and disappear around each week...

guimard avatar Oct 03 '25 14:10 guimard

Today, Tmail app shows more than 20 unread mails that are all deleted for more than one day

guimard avatar Oct 06 '25 08:10 guimard