element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.34k stars 711 forks source link

User Data Storage Increasing in matrix-sdk2 v1.3.18 #5573

Open hafiz013 opened 2 years ago

hafiz013 commented 2 years ago

Description

Matrix sdk increase data memory user instead of using cache. This is happen session time out (expired token) then do synch (refresh token) or incoming msg like old data still store. So it is increase the memory data storage user. Do you know how to fix it? or how to check where matrix sdk store this data. WhatsApp Image 2022-03-18 at 12 05 38 PM

hafiz013 commented 2 years ago

After do synch how to remove old session so that apps data is not growth?

session matrix

notramo commented 2 years ago

Possible duplicate of #5244

ouchadam commented 2 years ago

without seeing example code it's hard to say for sure but this looks like a misconfiguration of the SDK where multiple sessions are being created rather than restoring existing ones