No need for origin_*body Event keys

Also fixes lack of original message text when
replying to non-message events.
This commit is contained in:
miruka
2020-05-20 06:37:50 -04:00
parent b09b3b990b
commit 66f9a17111
2 changed files with 13 additions and 17 deletions

View File

@@ -219,13 +219,11 @@ class Event(ModelItem):
sender_avatar: str = field()
fetch_profile: bool = False
origin_body: str = ""
origin_formatted_body: str = ""
content: str = ""
inline_content: str = ""
reason: str = ""
links: List[str] = field(default_factory=list)
mentions: List[Tuple[str, str]] = field(default_factory=list)
content: str = ""
inline_content: str = ""
reason: str = ""
links: List[str] = field(default_factory=list)
mentions: List[Tuple[str, str]] = field(default_factory=list)
type_specifier: TypeSpecifier = TypeSpecifier.Unset