Fix Request Consoles "new messages" displaying wrong (#26680)

* Fix request console "new messages" displaying wrong

* Build and update /tg/ui

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
Co-authored-by: /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
Arthri
2024-09-16 11:42:43 +08:00
committed by GitHub
parent 024af9c248
commit 07ded0c5df
2 changed files with 8 additions and 8 deletions
@@ -57,13 +57,7 @@ const MainMenu = (props, context) => {
const { act, data } = useBackend(context);
const { newmessagepriority, announcementConsole, silent } = data;
let messageInfo;
if (newmessagepriority >= RQ_NONEW_MESSAGES) {
messageInfo = (
<Box color="red" bold mb={1}>
There are new messages
</Box>
);
} else if (newmessagepriority === RQ_HIGHPRIORITY) {
if (newmessagepriority === RQ_HIGHPRIORITY) {
messageInfo = (
<Blink>
<Box color="red" bold mb={1}>
@@ -71,6 +65,12 @@ const MainMenu = (props, context) => {
</Box>
</Blink>
);
} else if (newmessagepriority > RQ_NONEW_MESSAGES) {
messageInfo = (
<Box color="red" bold mb={1}>
There are new messages
</Box>
);
} else {
messageInfo = (
<Box color="label" mb={1}>
File diff suppressed because one or more lines are too long