Skip to content

Commit

Permalink
Merge pull request matrix-org#1801 from matrix-org/alfogrillo/fix_loc…
Browse files Browse the repository at this point in the history
…ation_parser

Fix fallback parsing logic for legacy location events
  • Loading branch information
alfogrillo authored Jul 5, 2023
2 parents 5f35db6 + 191ae5a commit f214fea
Show file tree
Hide file tree
Showing 2 changed files with 3 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
1 change: 1 addition & 0 deletions changelog.d/pr-1801.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix parsing logic for legacy location events

0 comments on commit f214fea

Please sign in to comment.