Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 6d4e6d4

Browse files
committed
Also check for dict since sometimes they aren't frozen
1 parent cea4e4e commit 6d4e6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/events/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def _copy_field(src, dst, field):
132132
key_to_move = field.pop(-1)
133133
sub_dict = src
134134
for sub_field in field: # e.g. sub_field => "content"
135-
if sub_field in sub_dict and type(sub_dict[sub_field]) == frozendict:
135+
if sub_field in sub_dict and type(sub_dict[sub_field]) in [dict, frozendict]:
136136
sub_dict = sub_dict[sub_field]
137137
else:
138138
return

0 commit comments

Comments
 (0)