Merge branch 'develop' into johannes/find-myself

This commit is contained in:
Johannes Marbach
2023-02-13 20:16:04 +01:00
committed by GitHub
612 changed files with 3608 additions and 2769 deletions

View File

@@ -83,7 +83,7 @@ export const makeMapSiteLink = (coords: GeolocationCoordinates): string => {
};
export const createMapSiteLinkFromEvent = (event: MatrixEvent): string => {
const content: Object = event.getContent();
const content = event.getContent();
const mLocation = content[M_LOCATION.name];
if (mLocation !== undefined) {
const uri = mLocation["uri"];

View File

@@ -37,7 +37,7 @@ export const useMap = ({ interactive, bodyId, onError }: UseMapProps): MapLibreM
useEffect(
() => {
try {
setMap(createMap(interactive, bodyId, onError));
setMap(createMap(!!interactive, bodyId, onError));
} catch (error) {
onError?.(error);
}