[FIX] Files screen stopped listing content on server 4.2 (#3541)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Reinaldo Neto 2021-12-13 13:27:43 -03:00 committed by GitHub
parent a1cee02fb0
commit 4e15c25ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -1520,16 +1520,7 @@ const RocketChat = {
return this.sdk.get(`${this.roomTypeToApiType(type)}.files`, { return this.sdk.get(`${this.roomTypeToApiType(type)}.files`, {
roomId, roomId,
offset, offset,
sort: { uploadedAt: -1 }, sort: { uploadedAt: -1 }
fields: {
name: 1,
description: 1,
size: 1,
type: 1,
uploadedAt: 1,
url: 1,
userId: 1
}
}); });
}, },
getMessages(roomId, type, query, offset) { getMessages(roomId, type, query, offset) {