[FIX] Files screen stopped listing content on server 4.2 (#3541)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
a1cee02fb0
commit
4e15c25ef5
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue