apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

After switching to different account, contributions screen shows pictures of previous account

Open nicolas-raoul opened this issue 5 years ago • 9 comments

  1. Be logged into your usual account
  2. Log out
  3. Log into another account (which has never uploaded anything)
  4. Expected: Contributions screen is empty. Actually: Showing 10 pictures from the usual account.

nicolas-raoul avatar Apr 14 '21 06:04 nicolas-raoul

Hey @nicolas-raoul, I think PR #4337 solves this issue too, but I am not sure about the #4286 as I am not able to reproduce the exact issue that you have mentioned, in my case still the empty contribution list is appearing. Can you again test the PR with this issue? Thanks!

Pratham2305 avatar Apr 14 '21 08:04 Pratham2305

@nicolas-raoul this is happening because at the time of logout the data is still being fetch so sometimes the images are stores in the table after the table is cleared, solution : every thing must be paused first when the logout is clicked and then the clearing of table must occur . this will not only solve this problem but the problem with used seeing older contribution or no contribution when they login again problem as well or we can load 50 images at a time then load another 50 when the user scrolls to bottom or delete the table if exists at every login

vinayak0505 avatar Apr 24 '21 21:04 vinayak0505

Great find!

On Sun, 25 Apr 2021, 06:53 Vinayak Aggarwal, @.***> wrote:

@nicolas-raoul https://github.com/nicolas-raoul this is happening because at the time of logout the data is still being fetch so sometimes the images are stores in the table after the table is cleared, solution : every thing must be paused first when the logout is clicked and then the clearing of table must occur . this will not only solve this problem but the problem with used seeing older contribution or no contribution when they login again problem as well

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/commons-app/apps-android-commons/issues/4357#issuecomment-826158260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAYKBXX3CA53KDPRGURXFTTKM4W3ANCNFSM424WTF6A .

nicolas-raoul avatar Apr 25 '21 00:04 nicolas-raoul

Sorry, if anyone work for this? I want to have a try.

obsidian-zero avatar Apr 25 '21 06:04 obsidian-zero

@obsidian-zero Welcome to the project! :-)

@vinayak0505 Are you working on the issue, or can obsidian-zero take it based on your research work?

nicolas-raoul avatar Apr 25 '21 08:04 nicolas-raoul

Let him give it a try

vinayak0505 avatar Apr 25 '21 08:04 vinayak0505

@vinayak0505 @obsidian-zero you are working on this issue ?

Prince-kushwaha avatar May 09 '21 18:05 Prince-kushwaha

Someone else is assigned on it

vinayak0505 avatar May 09 '21 18:05 vinayak0505

@vinayak0505 @obsidian-zero you are working on this issue ?

I'm terribly sorry for the delay.I have a lot of things to do during this time. It will take me about another week to be free. I think you can do it if you want.

obsidian-zero avatar May 10 '21 00:05 obsidian-zero