Quellcode durchsuchen

Make unsupported message type error clearer

Tulir Asokan vor 1 Jahr
Ursprung
Commit
0005071984
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      mautrix_instagram/portal.py

+ 2 - 0
mautrix_instagram/portal.py

@@ -1531,6 +1531,8 @@ class Portal(DBPortal, BasePortal):
         content = TextMessageEventContent(
             msgtype=MessageType.NOTICE, body=item.placeholder.message
         )
+        if content.body == "Update to the latest version of Instagram to view this message.":
+            content.body = "This message type is not currently supported"
         content["com.beeper.linkpreviews"] = []
         await self._add_instagram_reply(content, item.replied_to_message)
         return EventType.ROOM_MESSAGE, content