Skip to content

Commit 8fa1c7e

Browse files
committed
Disable deserializing m.direct. Fixes #108
1 parent d71b149 commit 8fa1c7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mautrix/types/event/account_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class RoomTagAccountDataEventContent(SerializableAttrs):
2828
AccountDataEventContent = Union[RoomTagAccountDataEventContent, DirectAccountDataEventContent, Obj]
2929
account_data_event_content_map = {
3030
EventType.TAG: RoomTagAccountDataEventContent,
31-
EventType.DIRECT: DirectAccountDataEventContent,
31+
# m.direct doesn't really need deserializing
32+
# EventType.DIRECT: DirectAccountDataEventContent,
3233
}
3334

3435

0 commit comments

Comments
 (0)