Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 85813b22 rédigé par celogeek's avatar celogeek
Parcourir les fichiers

add missing msgtype = m.sticker

On iOS the message is sent twice, with a duplicate event_id.
It cause error on logs, in different places (synapse, mautrix, ...)

It required to fix the already existing json or reimport the stickers.

The "packs/scalar*" example already include this field, and it works.
parent ba009627
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -42,6 +42,7 @@ if TYPE_CHECKING: ...@@ -42,6 +42,7 @@ if TYPE_CHECKING:
url: str url: str
info: MediaInfo info: MediaInfo
id: str id: str
msgtype: str
else: else:
MediaInfo = None MediaInfo = None
StickerInfo = None StickerInfo = None
......
...@@ -74,4 +74,5 @@ def make_sticker(mxc: str, width: int, height: int, size: int, ...@@ -74,4 +74,5 @@ def make_sticker(mxc: str, width: int, height: int, size: int,
"mimetype": "image/png", "mimetype": "image/png",
}, },
}, },
"msgtype": "m.sticker",
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter