When we obtain the model trough getModelForFile which reads the
properties from the table row element, which does not preserve already
fetched lock information otherwise.
This fixes disappearing lock information after leaving a document editor like Collabora where we update the file model based on the result of fileList.getModelForFile to indicate the last saved modification date update.
Note this is not a nice approach but the bug is solved by the clean API that the files app and files_lock use with 28 anyways.
When we obtain the model trough getModelForFile which reads the properties from the table row element, which does not preserve already fetched lock information otherwise.
This fixes disappearing lock information after leaving a document editor like Collabora where we update the file model based on the result of fileList.getModelForFile to indicate the last saved modification date update.
Note this is not a nice approach but the bug is solved by the clean API that the files app and files_lock use with 28 anyways.
Steps to reproduce:
before:
After: