comparison libervia/backend/models/core.py @ 4166:a1f7040b5a15

plugin XEP-0424: message retraction update: - follow specification update (with namespace bump) - retract from history on message reception for group chat - send bridge message
author Goffi <goffi@goffi.org>
date Thu, 30 Nov 2023 13:23:53 +0100
parents 98687eaa6a09
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4165:81faa85c9cfa 4166:a1f7040b5a15
30 if "type" not in kwargs: 30 if "type" not in kwargs:
31 kwargs["type"] = "reactions" 31 kwargs["type"] = "reactions"
32 super().__init__(**kwargs) 32 super().__init__(**kwargs)
33 33
34 34
35 class MessageEditData(MessageData):
36 """Data used when a new message edition has been received"""
37 pass
38
39
40 class MessageReactionData(MessageUpdateData): 35 class MessageReactionData(MessageUpdateData):
41 reactions: dict[str, list[str]] = Field( 36 reactions: dict[str, list[str]] = Field(
42 description="Reaction to reacting entities mapping" 37 description="Reaction to reacting entities mapping"
43 ) 38 )
44 39