Skip to content

Commit

Permalink
Make sure to use the old struct name for ObjC types when using the ol…
Browse files Browse the repository at this point in the history
…d cluster name. (project-chip#894)
  • Loading branch information
bzbarsky-apple authored Jan 18, 2023
1 parent 7bcd9ee commit 81f263c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ async function asObjectiveCClass(type, cluster, options) {
if (isStruct) {
if (options.hash.compatRemapClusterName) {
cluster = compatClusterNameRemapping.call(this, cluster, { hash: {} });
type = oldName.call(this, cluster, {
hash: {
"struct": type
}
}) || type;
} else {
let preserveAcronyms = true;
if ('preserveAcronyms' in options.hash) {
Expand Down

0 comments on commit 81f263c

Please sign in to comment.