fix: open url instead of link if present
This commit is contained in:
@@ -382,7 +382,11 @@ const MessagesTable = () => {
|
|||||||
</Modal.Content>
|
</Modal.Content>
|
||||||
<Modal.Actions>
|
<Modal.Actions>
|
||||||
<Button onClick={() => {
|
<Button onClick={() => {
|
||||||
openPage(`/message/${message.link}`);
|
if (message.URL) {
|
||||||
|
openPage(message.URL);
|
||||||
|
} else {
|
||||||
|
openPage(`/message/${message.link}`);
|
||||||
|
}
|
||||||
}}>
|
}}>
|
||||||
打开
|
打开
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user