From 4e15c25ef52bfb0559b427109ec42367b44a16d2 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 13 Dec 2021 13:27:43 -0300 Subject: [PATCH] [FIX] Files screen stopped listing content on server 4.2 (#3541) Co-authored-by: Diego Mello --- app/lib/rocketchat.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index 174eaf9a..269c4be7 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -1520,16 +1520,7 @@ const RocketChat = { return this.sdk.get(`${this.roomTypeToApiType(type)}.files`, { roomId, offset, - sort: { uploadedAt: -1 }, - fields: { - name: 1, - description: 1, - size: 1, - type: 1, - uploadedAt: 1, - url: 1, - userId: 1 - } + sort: { uploadedAt: -1 } }); }, getMessages(roomId, type, query, offset) {