nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

[stable27] fix: Preserve lock data in file info model #201

Closed juliushaertl closed 8 months ago

juliushaertl commented 8 months ago

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: