|
@@ -234,12 +234,26 @@ class Attachment(SerializableAttrs):
|
|
|
outgoing_filename: Optional[str] = field(default=None, json="filename")
|
|
|
|
|
|
|
|
|
+@dataclass
|
|
|
+class Mention(SerializableAttrs):
|
|
|
+ uuid: UUID
|
|
|
+ length: int
|
|
|
+ start: int = 0
|
|
|
+
|
|
|
+
|
|
|
+@dataclass
|
|
|
+class QuotedAttachment(SerializableAttrs):
|
|
|
+ content_type: Optional[str] = field(default=None, json="contentType")
|
|
|
+ filename: Optional[str] = field(default=None, json="fileName")
|
|
|
+
|
|
|
+
|
|
|
@dataclass
|
|
|
class Quote(SerializableAttrs):
|
|
|
id: int
|
|
|
author: Address
|
|
|
text: Optional[str] = None
|
|
|
- # TODO: attachments, mentions
|
|
|
+ attachments: Optional[List[QuotedAttachment]] = None
|
|
|
+ mentions: Optional[List[Mention]] = None
|
|
|
|
|
|
|
|
|
@dataclass(kw_only=True)
|
|
@@ -263,13 +277,6 @@ class RemoteDelete(SerializableAttrs):
|
|
|
target_sent_timestamp: int = field(json="targetSentTimestamp")
|
|
|
|
|
|
|
|
|
-@dataclass
|
|
|
-class Mention(SerializableAttrs):
|
|
|
- uuid: UUID
|
|
|
- length: int
|
|
|
- start: int = 0
|
|
|
-
|
|
|
-
|
|
|
@dataclass
|
|
|
class MessageData(SerializableAttrs):
|
|
|
timestamp: int
|