prevent recursion when migrating from old matrix account data format

This commit is contained in:
ggurdin 2024-07-11 11:42:00 -04:00
parent 6ab62e2eff
commit 6c2d90f8f8

View file

@ -217,7 +217,7 @@ class MatrixProfile {
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = {};
for (final value in MatrixProfileEnum.values) {
json[value.title] = getProfileData(value);
json[value.title] = profile?[value.title];
}
return json;
}