Regression: App not fetching messages properly after #4801 (#4819)

This commit is contained in:
Diego Mello 2023-01-16 13:43:27 -03:00 committed by GitHub
parent fbb05fa0d3
commit 447a2b9344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -688,8 +688,8 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
const newLastOpen = new Date(); const newLastOpen = new Date();
await RoomServices.getMessages({ await RoomServices.getMessages({
rid: room.rid, rid: room.rid,
lastOpen: 'lastOpen' in room ? room.lastOpen : undefined, t: room.t as RoomType,
t: room.t as RoomType ...('lastOpen' in room && room.lastOpen ? { lastOpen: room.lastOpen } : {})
}); });
// if room is joined // if room is joined