Merge pull request #31051 from nextcloud/backport/30995/stable22

[stable22] Fix bugs with incorrect currentFileList in the favorite and share by you view
This commit is contained in:
Vincent Petry 2022-02-18 15:52:32 +01:00 committed by GitHub
commit de9e61ab65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2293,6 +2293,12 @@
this.setFiles(result);
if (this.dirInfo) {
// Make sure the currentFileList is the current one
// When navigating to the favorite or share with you virtual
// folder, this is not correctly set during the initialisation
// otherwise.
OCA.Files.App && OCA.Files.App.updateCurrentFileList(this);
var newFileId = this.dirInfo.id;
// update fileid in URL
var params = {