prettier commit

This commit is contained in:
Reinaldo Neto 2024-01-11 10:34:36 -03:00
parent 20bd8ddeda
commit ee9766e1ae
1 changed files with 15 additions and 15 deletions

View File

@ -171,18 +171,18 @@ interface IRoomViewState {
[key: string]: any;
joined: boolean;
room:
| TSubscriptionModel
| {
rid: string;
t: string;
name?: string;
fname?: string;
prid?: string;
joinCodeRequired?: boolean;
status?: string;
lastMessage?: ILastMessage;
sysMes?: boolean;
onHold?: boolean;
| TSubscriptionModel
| {
rid: string;
t: string;
name?: string;
fname?: string;
prid?: string;
joinCodeRequired?: boolean;
status?: string;
lastMessage?: ILastMessage;
sysMes?: boolean;
onHold?: boolean;
};
roomUpdate: {
[K in TRoomUpdate]?: any;
@ -697,7 +697,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
await RoomServices.getMessages({
rid: room.rid,
t: room.t as RoomType,
...'lastOpen' in room && room.lastOpen ? { lastOpen: room.lastOpen } : {}
...('lastOpen' in room && room.lastOpen ? { lastOpen: room.lastOpen } : {})
});
// if room is joined
@ -1509,7 +1509,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
return (
<>
<MessageActions
ref={ref => this.messageActions = ref}
ref={ref => (this.messageActions = ref)}
tmid={this.tmid}
room={room}
user={user}
@ -1520,7 +1520,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
jumpToMessage={this.jumpToMessageByUrl}
isReadOnly={readOnly}
/>
<MessageErrorActions ref={ref => this.messageErrorActions = ref} tmid={this.tmid} />
<MessageErrorActions ref={ref => (this.messageErrorActions = ref)} tmid={this.tmid} />
</>
);
};