Skip to content

Conversation

netbe
Copy link
Collaborator

@netbe netbe commented Jul 21, 2025

BugWPB-18909 [iOS] ZMUserSession is still retained in memory after logout

Issue

When the user logs out the ZMUserSession is still retained in memory. Looking at it, the operation loop still waits for all dispatch groups to be empty. Not sure exactly sure why there are so much blocks left and why they can't be executed.

It would appear that there are 2 pending save (enqueueDelayedSaved)

Solution:
Disable the enqueuDelayedSaved when logging out

  • Add debug action to logout without password

Testing

  1. login
  2. logout
  3. check memory

Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@netbe netbe added the WIP label Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant