mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-25 18:38:37 +01:00
Fix msgtype display
This commit is contained in:
parent
071edcd86e
commit
c00abe9f2f
|
|
@ -136,7 +136,7 @@ class MatrixSections(Sections):
|
|||
if not event_name.startswith("m.room.message#m."):
|
||||
continue
|
||||
sections.append(template.render(
|
||||
example=examples[event_name],
|
||||
example=examples[event_name][0],
|
||||
event=schemas[event_name],
|
||||
title_kind=subtitle_title_char
|
||||
))
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ class MatrixUnits(Units):
|
|||
event_name = filename.split("#")[0]
|
||||
example = json.loads(f.read())
|
||||
|
||||
examples[filename] = examples.get(event_name, [])
|
||||
examples[filename] = examples.get(filename, [])
|
||||
examples[filename].append(example)
|
||||
if filename != event_name:
|
||||
examples[event_name] = examples.get(event_name, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue