Add links to message replies and load older messages.

This commit is contained in:
Paul
2021-07-09 10:10:36 +01:00
parent 7a5ace2def
commit 3075fc8e32
2 changed files with 67 additions and 23 deletions

View File

@@ -36,9 +36,10 @@ interface Props {
attachContext?: boolean;
message: MessageObject;
highlight?: boolean;
hideInfo?: boolean;
}
export function SystemMessage({ attachContext, message, highlight }: Props) {
export function SystemMessage({ attachContext, message, highlight, hideInfo }: Props) {
const ctx = useForceUpdate();
let data: SystemMessageParsed;
@@ -153,9 +154,9 @@ export function SystemMessage({ attachContext, message, highlight }: Props) {
})
: undefined
}>
<MessageInfo>
{ !hideInfo && <MessageInfo>
<MessageDetail message={message} position="left" />
</MessageInfo>
</MessageInfo> }
<SystemContent>{children}</SystemContent>
</MessageBase>
);