Skip to content

Commit

Permalink
Fix fallback parsing of a location
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo committed Jul 3, 2023
1 parent 5f35db6 commit 1accb66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MatrixSDK/JSONModels/Event/Content/MXEventContentLocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ + (instancetype)modelFromJSON:(NSDictionary *)JSONDictionary
}

finalLocationDictionary = @{
kMXMessageGeoURIKey: geoURIString
// The parsing logic inside `[MXLocation modelFromJSON:]` expects the geo URI to be at "uri" and not at "geo_uri"
kMXMessageContentKeyExtensibleLocationURI: geoURIString
};
}
else
Expand Down

0 comments on commit 1accb66

Please sign in to comment.