minor tweak
This commit is contained in:
parent
13ee494d8a
commit
5635fbbebb
|
@ -124,7 +124,7 @@ interface IRoomViewProps {
|
||||||
Hide_System_Messages: [];
|
Hide_System_Messages: [];
|
||||||
baseUrl: string;
|
baseUrl: string;
|
||||||
serverVersion: string;
|
serverVersion: string;
|
||||||
customEmojis: [key: string];
|
customEmojis: { [key: string]: string };
|
||||||
isMasterDetail: boolean;
|
isMasterDetail: boolean;
|
||||||
theme: string;
|
theme: string;
|
||||||
replyBroadcast(message: string): void;
|
replyBroadcast(message: string): void;
|
||||||
|
@ -652,7 +652,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
this.messageErrorActions?.showMessageErrorActions(message);
|
this.messageErrorActions?.showMessageErrorActions(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
onEditInit = (message: { id: string; subscription: { id: string }; attachments: any; msg: string }) => {
|
onEditInit = (message: { id: string; subscription: { id: string }; attachments: IAttachment[]; msg: string }) => {
|
||||||
const newMessage = {
|
const newMessage = {
|
||||||
id: message.id,
|
id: message.id,
|
||||||
subscription: {
|
subscription: {
|
||||||
|
@ -787,7 +787,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
try {
|
try {
|
||||||
this.setState({ showingBlockingLoader: true });
|
this.setState({ showingBlockingLoader: true });
|
||||||
const parsedUrl = parse(messageUrl, true);
|
const parsedUrl = parse(messageUrl, true);
|
||||||
const messageId: any = parsedUrl.query.msg;
|
const messageId = parsedUrl.query.msg;
|
||||||
await this.jumpToMessage(messageId);
|
await this.jumpToMessage(messageId);
|
||||||
this.setState({ showingBlockingLoader: false });
|
this.setState({ showingBlockingLoader: false });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -868,7 +868,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
getCustomEmoji = (name: any) => {
|
getCustomEmoji = (name: string) => {
|
||||||
const { customEmojis } = this.props;
|
const { customEmojis } = this.props;
|
||||||
const emoji = customEmojis[name];
|
const emoji = customEmojis[name];
|
||||||
if (emoji) {
|
if (emoji) {
|
||||||
|
|
Loading…
Reference in New Issue