diff --git a/.gitea/workflows/windows.yaml b/.gitea/workflows/windows.yaml index 89c6f7a..a42c27b 100644 --- a/.gitea/workflows/windows.yaml +++ b/.gitea/workflows/windows.yaml @@ -14,7 +14,7 @@ on: jobs: build: - runs-on: Windows + runs-on: windows-latest steps: - name: Checkout code uses: actions/checkout@v6 diff --git a/app/components/MessageAttachments/MessageImage.tsx b/app/components/MessageAttachments/MessageImage.tsx index 2361ed6..5e22afe 100644 --- a/app/components/MessageAttachments/MessageImage.tsx +++ b/app/components/MessageAttachments/MessageImage.tsx @@ -13,12 +13,12 @@ import { DownloadStatus, useAttachment } from "@/app/providers/AttachmentProvide export function MessageImage(props: AttachmentProps) { const colors = useRosettaColors(); const { - downloadPercentage, - uploadedPercentage, - download, + downloadPercentage, + uploadedPercentage, + download, downloadStatus, getBlob, - getPreview} = useAttachment(props.attachment, props.chacha_key_plain); + getPreview } = useAttachment(props.attachment, props.chacha_key_plain); const mainRef = useRef(null); const error = downloadStatus == DownloadStatus.ERROR; const { open } = useImageViewer(); @@ -55,7 +55,6 @@ export function MessageImage(props: AttachmentProps) { return; } } - return ( setLoadedImage(true)}>)} - {((downloadStatus != DownloadStatus.DOWNLOADED && downloadStatus != DownloadStatus.PENDING) || !loadedImage) && preview.length >= 20 && ( + {((downloadStatus == DownloadStatus.NOT_DOWNLOADED) || !loadedImage) && preview.length >= 20 && ( <> - - - {!error && ( - - {downloadPercentage > 0 ? ( - - ) : ( - - )} - - )} - {error && ( - - - Image expired - - - - )} - - )} @@ -149,6 +110,43 @@ export function MessageImage(props: AttachmentProps) { )} + + {(downloadStatus == DownloadStatus.NOT_DOWNLOADED || downloadStatus == DownloadStatus.DOWNLOADING) && ( + {!error && ( + + {downloadPercentage > 0 ? ( + + ) : ( + + )} + + )} + {error && ( + + + Image expired + + + + )} + )} ); } diff --git a/app/components/UpdateAlert/UpdateAlert.tsx b/app/components/UpdateAlert/UpdateAlert.tsx index 6f90f1b..14bb2b1 100644 --- a/app/components/UpdateAlert/UpdateAlert.tsx +++ b/app/components/UpdateAlert/UpdateAlert.tsx @@ -20,7 +20,8 @@ export function UpdateAlert(props : UpdateAlertProps) { updateStatus, downloadLastApplicationUpdate, restartAppForUpdateApply, - checkForUpdates + checkForUpdates, + updateServer } = useUpdater(); useEffect(() => { @@ -34,7 +35,7 @@ export function UpdateAlert(props : UpdateAlertProps) { diff --git a/app/providers/UpdateProvider/UpdateProvider.tsx b/app/providers/UpdateProvider/UpdateProvider.tsx index 3438c26..c9b97d6 100644 --- a/app/providers/UpdateProvider/UpdateProvider.tsx +++ b/app/providers/UpdateProvider/UpdateProvider.tsx @@ -39,6 +39,7 @@ export interface UpdateContextValue { checkForUpdates: () => void; downloadLastApplicationUpdate: () => void; restartAppForUpdateApply: () => void; + updateServer: string | null; } export const UpdateProviderContext = createContext(null); @@ -167,7 +168,8 @@ export function UpdateProvider(props: UpdateProviderProps) { kernelUpdateUrl, checkForUpdates, downloadLastApplicationUpdate, - restartAppForUpdateApply + restartAppForUpdateApply, + updateServer: updateServerRef.current }}> {props.children} diff --git a/app/version.ts b/app/version.ts index 95ebf02..68773cb 100644 --- a/app/version.ts +++ b/app/version.ts @@ -1,11 +1,8 @@ -export const APP_VERSION = "1.0.2"; +export const APP_VERSION = "1.0.3"; export const CORE_MIN_REQUIRED_VERSION = "1.4.9"; export const RELEASE_NOTICE = ` -**Update v1.0.2** :emoji_1f631: -- Support multiple file downloads -- Fix fallback after boot loading -- Fix corss-chat reading messages -- Support sync attachments on other devices -- Fix UI bugs +**Update v1.0.3** :emoji_1f631: +- Fix kernel update alert +- Fix UI bugs. `; \ No newline at end of file