apps entry in the profile.json is used for multiplayer data-storage. If it’s wiped, shared documents (etc) will “disappear” for the users who don’t “own” or have a copy of the data.
There was an issue reported that my extension was causing users to lose data because of it deleting & re-uploading a clean profile.json if something went wrong with fetching/parsing the data (I know this is wrong, I will fix it when I get back to working on the project).
My (test) profile.json currently only has the
https://www.stealthy.im entries within the
apps array, and yet I still have my data persisting for every app I’ve used. If I recall correctly, I’ve even had my
profile.json wiped and Stealthy still has my DM history and Graphite still has my documents.
Therefore, my questions are:
Why does the
appsentry in the
profile.jsonexist if it does not need to be used? It seems that deriving the storage URL is the same every time.
If some apps are losing data because the entries are removed/not stored, then what should they fix? (Additionally, what did they code to even make this an issue in the first place?)
edit: It seems that they are using this function:
Therefore, another question: why not add in a fall-back to this function to generate the “correct” URL if one is not found in the