Skip to content

Commit 81f263c

Browse files
Make sure to use the old struct name for ObjC types when using the old cluster name. (#894)
1 parent 7bcd9ee commit 81f263c

File tree

1 file changed

+5
-0
lines changed
  • src-electron/generator/matter/darwin/Framework/CHIP/templates

1 file changed

+5
-0
lines changed

src-electron/generator/matter/darwin/Framework/CHIP/templates/helper.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ async function asObjectiveCClass(type, cluster, options) {
234234
if (isStruct) {
235235
if (options.hash.compatRemapClusterName) {
236236
cluster = compatClusterNameRemapping.call(this, cluster, { hash: {} });
237+
type = oldName.call(this, cluster, {
238+
hash: {
239+
"struct": type
240+
}
241+
}) || type;
237242
} else {
238243
let preserveAcronyms = true;
239244
if ('preserveAcronyms' in options.hash) {

0 commit comments

Comments
 (0)