settings.py: add Chat.Composer.TypingNotifications

This commit is contained in:
miruka
2021-01-10 15:26:19 -04:00
parent fda5bc0039
commit ae4bcffa06
4 changed files with 44 additions and 1 deletions

View File

@@ -1312,6 +1312,13 @@ class MatrixClient(nio.AsyncClient):
):
"""Set typing notice to the server."""
if not utils.config_get_account_room_rule(
rules = self.backend.settings.Chat.Composer.TypingNotifications,
user_id = self.user_id,
room_id = room_id,
):
return
presence = self.models["accounts"][self.user_id].presence
if presence not in [Presence.State.invisible, Presence.State.offline]: