Color user mentions in local echoes too
This commit is contained in:
parent
b11bd8331b
commit
38e57d2ff9
4
TODO.md
4
TODO.md
|
@ -1,8 +1,6 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- mention color in local echo
|
## Goals before 0.5.0
|
||||||
|
|
||||||
## Main goals for next version
|
|
||||||
|
|
||||||
- Redacting messages
|
- Redacting messages
|
||||||
- Download progress bar for file events, "Save as..."
|
- Download progress bar for file events, "Save as..."
|
||||||
|
|
|
@ -337,7 +337,11 @@ class MatrixClient(nio.AsyncClient):
|
||||||
tx_id = uuid4()
|
tx_id = uuid4()
|
||||||
content[f"{__app_name__}.transaction_id"] = str(tx_id)
|
content[f"{__app_name__}.transaction_id"] = str(tx_id)
|
||||||
|
|
||||||
await self._local_echo(room_id, tx_id, event_type, content=echo_body)
|
mentions = HTML.mentions_in_html(echo_body)
|
||||||
|
await self._local_echo(
|
||||||
|
room_id, tx_id, event_type, content=echo_body, mentions=mentions,
|
||||||
|
)
|
||||||
|
|
||||||
await self._send_message(room_id, content)
|
await self._send_message(room_id, content)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user