Fix mentioning users without display names

This commit is contained in:
miruka
2020-08-23 09:41:41 -04:00
parent e79094c18c
commit fbf6e48b5b
3 changed files with 10 additions and 10 deletions

View File

@@ -512,7 +512,7 @@ class MatrixClient(nio.AsyncClient):
self,
room_id: str,
text: str,
display_name_mentions: Optional[Dict[str, str]] = None, # {name: id}
display_name_mentions: Optional[Dict[str, str]] = None, # {id: name}
reply_to_event_id: Optional[str] = None,
) -> None:
"""Send a markdown `m.text` or `m.notice` (with `/me`) message ."""