Handle missing content keys when calculating presentable names. (#9165)

Treat the content as untrusted and do not assume it is of
the proper form.
This commit is contained in:
Patrick Cloke 2021-01-25 07:27:16 -05:00 committed by GitHub
parent a7882f9887
commit 6f7417c3db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 242 additions and 16 deletions

View file

@ -29,7 +29,7 @@ class PushRuleEvaluatorTestCase(unittest.TestCase):
"type": "m.room.history_visibility",
"sender": "@user:test",
"state_key": "",
"room_id": "@room:test",
"room_id": "#room:test",
"content": content,
},
RoomVersions.V1,