Fix msgtype display

pull/137/head
Daniel Wagner-Hall 9 years ago
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…
Cancel
Save