From e321bc30d0a1c7dadfd3272eefb15d1ebec0b7d3 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 9 Jan 2022 00:06:35 +0200 Subject: [PATCH] Update some small things --- .editorconfig | 3 +++ CHANGELOG.md | 7 ++++++- ROADMAP.md | 2 +- mautrix_telegram/formatter/from_matrix/parser.py | 2 +- setup.py | 1 - 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6342befa..96c9834e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,6 +8,9 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +[*.md] +trim_trailing_whitespace = false + [*.py] max_line_length = 99 diff --git a/CHANGELOG.md b/CHANGELOG.md index 67c21ee9..be37dff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,14 @@ * Improved support for voice messages. * Improved color of blue text from Telegram to be more readable on dark themes. * Fixed syncing contacts throwing an error for new accounts. -* Fixed migrating from the legacy database if the database schema had been +* Fixed migrating pre-v0.11 legacy databases if the database schema had been corrupted (e.g. by using 3rd party tools for SQLite -> Postgres migration). * Fixed converting animated stickers to webm with >33 FPS. +* Fixed a bug in v0.11.0 that broke mentioning users in groups + (thanks to [@dfuchss] in [#724]). + +[@dfuchss]: https://github.com/dfuchss +[#724]: https://github.com/mautrix/telegram/pull/724 # v0.11.0 (2021-12-28) diff --git a/ROADMAP.md b/ROADMAP.md index ee4e5608..adb624cc 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -59,7 +59,7 @@ * [x] Option to use own Matrix account for messages sent from other Telegram clients (double puppeting) * [ ] ‡ Calls (hard, not yet supported by Telethon) * [ ] ‡ Secret chats (i.e. End-to-bridge encryption on Telegram) - * [x] End-to-bridge encryption in Matrix rooms (see [wiki](https://github.com/tulir/mautrix-telegram/wiki/End%E2%80%90to%E2%80%90bridge-encryption)) + * [x] End-to-bridge encryption in Matrix rooms (see [docs](https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html)) † Information not automatically sent from source, i.e. implementation may not be possible ‡ Maybe, i.e. this feature may or may not be implemented at some point diff --git a/mautrix_telegram/formatter/from_matrix/parser.py b/mautrix_telegram/formatter/from_matrix/parser.py index f76187fc..31a4e96f 100644 --- a/mautrix_telegram/formatter/from_matrix/parser.py +++ b/mautrix_telegram/formatter/from_matrix/parser.py @@ -42,8 +42,8 @@ class MatrixParser(BaseMatrixParser[TelegramMessage]): async def custom_node_to_fstring( self, node: HTMLNode, ctx: RecursionContext ) -> TelegramMessage | None: - msg = await self.tag_aware_parse_node(node, ctx) if node.tag == "command": + msg = await self.tag_aware_parse_node(node, ctx) return msg.prepend("/").format(TelegramEntityType.COMMAND) return None diff --git a/setup.py b/setup.py index ea001e5b..8036fd5a 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ import setuptools -import glob from mautrix_telegram.get_version import git_tag, git_revision, version, linkified_version