Compare commits

..

5 Commits

Author SHA1 Message Date
Marc Koch b6d4c24352 add custom exception 2024-07-04 16:39:37 +02:00
Marc Koch 3ee2290ca6 fix messed up merge 2024-06-29 01:42:39 +02:00
Marc Koch 32149194ea bump version to 0.2.0 2024-06-29 01:12:38 +02:00
Marc Koch d2ca25a192 update README.md 2024-06-29 01:12:14 +02:00
Marc Koch 92187280e9 multiple changes
- altered db schema to delete subscriptions along with topics
- extracted logic for creating and deleting topics into separate functions
- added functions to list topics and subscriptions
- delete topic and corresponding subscription if same topic is added with different token
- added more error messages and reactions
- added handling for authentication errors (subscription and topic are removed)
- inform all subscribed rooms when subscription is cancelled due to an action in another room
- added documentation for methods
- code style
2024-06-29 01:11:56 +02:00
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ from .exceptions import SubscriptionError
async def build_notice(html_content) -> TextMessageEventContent: async def build_notice(html_content) -> TextMessageEventContent:
""" """
Build a notice message with optional arguments. The html_content can contain Build a notice message.
placeholders like %s which will be replaced by the arguments.
""" """
text_content = await parse_html(html_content.strip()) text_content = await parse_html(html_content.strip())
return TextMessageEventContent( return TextMessageEventContent(