mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
Add links to message replies and load older messages.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user