Skip to content

Conversation

@danxuliu
Copy link
Member

Backport of #88

FileInfoModels returned by "getModelForFile" are just temporary, and
they should be used and forgotten instead of being kept by apps. It is
not guaranteed that different calls to "getModelForFile" for the same
file returns the same FileInfoModel object, so changes in one model
instance could be not known by other model instances (and their views),
and this could lead to different bugs (for example, a file list entry
being duplicated when a text file is edited or favourited after being
created).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@rullzer rullzer merged commit 21ddb80 into stable13 Feb 17, 2018
@rullzer rullzer deleted the stable13-88-do-not-keep-fileinfomodels-returned-by-getmodelforfile branch February 17, 2018 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants