minor tweak
This commit is contained in:
parent
60583eb517
commit
29f554caab
|
@ -161,6 +161,15 @@ interface INavToThread {
|
||||||
tlm?: string;
|
tlm?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IBlockAction {
|
||||||
|
actionId: string;
|
||||||
|
appId: string;
|
||||||
|
value: string;
|
||||||
|
blockId: string;
|
||||||
|
rid: string;
|
||||||
|
mid: string;
|
||||||
|
}
|
||||||
|
|
||||||
class RoomView extends React.Component<IRoomViewProps, any> {
|
class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
private rid: string;
|
private rid: string;
|
||||||
private t: RoomType;
|
private t: RoomType;
|
||||||
|
@ -1024,7 +1033,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
blockAction = ({ actionId, appId, value, blockId, rid, mid }: any) =>
|
blockAction = ({ actionId, appId, value, blockId, rid, mid }: IBlockAction) =>
|
||||||
RocketChat.triggerBlockAction({
|
RocketChat.triggerBlockAction({
|
||||||
blockId,
|
blockId,
|
||||||
actionId,
|
actionId,
|
||||||
|
@ -1065,7 +1074,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
loaderItem
|
loaderItem
|
||||||
});
|
});
|
||||||
|
|
||||||
renderItem = (item: IRoomItem, previousItem: IRoomItem, highlightedMessage: any) => {
|
renderItem = (item: IRoomItem, previousItem: IRoomItem, highlightedMessage: string) => {
|
||||||
const { room, lastOpen, canAutoTranslate } = this.state;
|
const { room, lastOpen, canAutoTranslate } = this.state;
|
||||||
const { user, Message_GroupingPeriod, Message_TimeFormat, useRealName, baseUrl, Message_Read_Receipt_Enabled, theme } =
|
const { user, Message_GroupingPeriod, Message_TimeFormat, useRealName, baseUrl, Message_Read_Receipt_Enabled, theme } =
|
||||||
this.props;
|
this.props;
|
||||||
|
|
Loading…
Reference in New Issue