Skip to content

Commit

Permalink
Fix Matrix->Telegram formatted messages throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 18, 2018
1 parent 504be22 commit f66c182
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mautrix_telegram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
__author__ = "Tulir Asokan <[email protected]>"
2 changes: 1 addition & 1 deletion mautrix_telegram/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ async def handle_matrix_message(self, sender, message, event_id):
reply_to = formatter.matrix_reply_to_telegram(message, space, room_id=self.mxid)
if type in {"m.text", "m.emote"}:
if "format" in message and message["format"] == "org.matrix.custom.html":
message, entities = formatter.matrix_to_telegram(message["formatted_body"], space)
message, entities = formatter.matrix_to_telegram(message["formatted_body"])
if type == "m.emote":
message = "/me " + message
response = await sender.client.send_message(self.peer, message, entities=entities,
Expand Down
Empty file.

0 comments on commit f66c182

Please sign in to comment.