We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edd6324 commit b669a0bCopy full SHA for b669a0b
packages/base/room.gts
@@ -615,11 +615,9 @@ export class RoomField extends FieldDef {
615
`Expected to find ${fragments[0].data.totalParts} fragments for fragment of event id ${eventId} but found ${fragments.length} fragments`,
616
);
617
}
618
- let cardDoc = JSON.parse(
619
- fragments.map((f) => f.data.cardFragment).join(''),
620
- ) as LooseSingleCardDocument;
621
-
622
- cardHashes.set(md5(JSON.stringify(cardDoc)), eventId);
+ let cardSource = fragments.map((f) => f.data.cardFragment).join('');
+ let cardDoc = JSON.parse(cardSource) as LooseSingleCardDocument;
+ cardHashes.set(md5(cardSource), eventId);
623
return cardDoc;
624
625
0 commit comments