prettier commit
This commit is contained in:
parent
20bd8ddeda
commit
ee9766e1ae
|
@ -171,18 +171,18 @@ interface IRoomViewState {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
joined: boolean;
|
joined: boolean;
|
||||||
room:
|
room:
|
||||||
| TSubscriptionModel
|
| TSubscriptionModel
|
||||||
| {
|
| {
|
||||||
rid: string;
|
rid: string;
|
||||||
t: string;
|
t: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
fname?: string;
|
fname?: string;
|
||||||
prid?: string;
|
prid?: string;
|
||||||
joinCodeRequired?: boolean;
|
joinCodeRequired?: boolean;
|
||||||
status?: string;
|
status?: string;
|
||||||
lastMessage?: ILastMessage;
|
lastMessage?: ILastMessage;
|
||||||
sysMes?: boolean;
|
sysMes?: boolean;
|
||||||
onHold?: boolean;
|
onHold?: boolean;
|
||||||
};
|
};
|
||||||
roomUpdate: {
|
roomUpdate: {
|
||||||
[K in TRoomUpdate]?: any;
|
[K in TRoomUpdate]?: any;
|
||||||
|
@ -697,7 +697,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
await RoomServices.getMessages({
|
await RoomServices.getMessages({
|
||||||
rid: room.rid,
|
rid: room.rid,
|
||||||
t: room.t as RoomType,
|
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
|
// if room is joined
|
||||||
|
@ -1509,7 +1509,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MessageActions
|
<MessageActions
|
||||||
ref={ref => this.messageActions = ref}
|
ref={ref => (this.messageActions = ref)}
|
||||||
tmid={this.tmid}
|
tmid={this.tmid}
|
||||||
room={room}
|
room={room}
|
||||||
user={user}
|
user={user}
|
||||||
|
@ -1520,7 +1520,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
jumpToMessage={this.jumpToMessageByUrl}
|
jumpToMessage={this.jumpToMessageByUrl}
|
||||||
isReadOnly={readOnly}
|
isReadOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
<MessageErrorActions ref={ref => this.messageErrorActions = ref} tmid={this.tmid} />
|
<MessageErrorActions ref={ref => (this.messageErrorActions = ref)} tmid={this.tmid} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue