Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Show update option only on desktop builds

Vishnu Mohandasdbe282b21c80
diff --git a/web/apps/ensu/src/components/chat/ChatDialogs.tsx b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
index c422d29515..627367205d 100644
--- a/web/apps/ensu/src/components/chat/ChatDialogs.tsx
+++ b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
@@ -461,28 +461,30 @@ export const ChatDialogs = memo(
/>
</ListItemButton>
- <ListItemButton
- onClick={() => {
- closeSettingsModal();
- void handleCheckForUpdates();
- }}
- sx={settingsItemSx}
- >
- <HugeiconsIcon
- icon={InformationCircleIcon}
- {...compactIconProps}
- />
- <Typography
- variant="small"
- sx={{ flex: 1 }}
+ {isTauriRuntime && (
+ <ListItemButton
+ onClick={() => {
+ closeSettingsModal();
+ void handleCheckForUpdates();
+ }}
+ sx={settingsItemSx}
>
- Check for updates
- </Typography>
- <HugeiconsIcon
- icon={ArrowRight01Icon}
- {...smallIconProps}
- />
- </ListItemButton>
+ <HugeiconsIcon
+ icon={InformationCircleIcon}
+ {...compactIconProps}
+ />
+ <Typography
+ variant="small"
+ sx={{ flex: 1 }}
+ >
+ Check for updates
+ </Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
+ </ListItemButton>
+ )}
<ListItemButton
onClick={() => {