From e611d23fac9b3e36cfdc77d1171bb88eba3dd5c8 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 5 Jul 2023 13:14:35 +0200 Subject: [PATCH] Live Location: Fix disappearing map when loading (#3371) --- src/components/middle/message/Location.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/middle/message/Location.tsx b/src/components/middle/message/Location.tsx index 120f87f61..6f8d60549 100644 --- a/src/components/middle/message/Location.tsx +++ b/src/components/middle/message/Location.tsx @@ -83,7 +83,7 @@ const Location: FC = ({ const mediaHash = buildStaticMapHash(point, width, height, zoom, scale); const mediaBlobUrl = useMedia(mediaHash); - const prevMediaBlobUrl = usePrevious(mediaBlobUrl); + const prevMediaBlobUrl = usePrevious(mediaBlobUrl, true); const mapBlobUrl = mediaBlobUrl || prevMediaBlobUrl; const accuracyRadiusPx = useMemo(() => {