Commit graph

61 commits

Author SHA1 Message Date
Tulir Asokan
5701bbf708 cmd/gomuks: move most things into new package 2024-11-08 10:09:30 +01:00
Tulir Asokan
540e8fa43e hicli/html: fix extra newlines when copying code blocks 2024-11-08 09:39:58 +01:00
Tulir Asokan
8f891b066c hicli/sync: don't send notifications on first sync 2024-11-04 11:52:51 +01:00
Tulir Asokan
ed45998248 hicli/send: add /raw command 2024-11-02 16:27:44 +02:00
Tulir Asokan
4742ca3116 hicli/send: fix image html to markdown conversion for editing 2024-11-02 14:03:39 +02:00
Tulir Asokan
c4d6e487da hicli/send: disable html input by default 2024-11-02 14:02:53 +02:00
Tulir Asokan
5832a935cf all: use markdown for custom emojis, improve editing
Edits will now use a different HTML -> markdown converter than what is
used to generate the body. This allows the plaintext body to have a
plain shortcode for custom emojis, while still having the raw data for
edits.

Additionally, for sent events, the raw input is saved locally, which
allows preserving commands and other such things. A future extension
may store the raw input in a custom field in the Matrix event to allow
lossless edits of messages sent from other clients.
2024-11-02 14:00:21 +02:00
Tulir Asokan
c31604eecf hicli/send: add LaTeX sending support 2024-11-02 12:32:00 +02:00
Tulir Asokan
8318cbdf17 hicli/html: fix non-math divs 2024-11-02 03:01:28 +02:00
Tulir Asokan
214d4fde53 hicli/html,web/timeline: add support for LaTeX rendering 2024-11-02 02:51:00 +02:00
Tulir Asokan
44dee015d4 hicli/html: deduplicate html escaping code 2024-11-02 02:50:56 +02:00
Tulir Asokan
e2f0ba61ac hicli/html: open mxc urls in new tab 2024-10-29 14:38:23 +02:00
Tulir Asokan
4d7dbffe05 hicli/send: add support for /me and /notice 2024-10-29 00:27:36 +02:00
Tulir Asokan
497e507783 hicli/sync: create implicit read receipts for own events 2024-10-27 23:38:24 +02:00
Tulir Asokan
976d1ae9cb web/timeline: add big emojis 2024-10-27 18:40:43 +02:00
Tulir Asokan
96019b6ef7 hicli: apply more default settings to http transport 2024-10-27 15:01:55 +02:00
Tulir Asokan
d432bbc26e hicli/backup: upload received megolm keys to key backup 2024-10-27 14:56:30 +02:00
Tulir Asokan
ceb26a0e14 hicli/init: send account data last 2024-10-27 12:43:41 +02:00
Tulir Asokan
e8f2029dbb web/timeline: add view source, report and redact event buttons to menu 2024-10-27 02:09:59 +03:00
Tulir Asokan
98f8ca2cdc hicli/database: fix json tag on MegolmSessionID 2024-10-27 01:41:03 +03:00
Tulir Asokan
ca76182b81 hicli/html: fix extra </>'s in sanitized HTML 2024-10-27 01:40:42 +03:00
Tulir Asokan
d9d0718bc6 web/emojipicker: add subscribe button for custom emoji packs 2024-10-26 16:28:56 +03:00
Tulir Asokan
ac3b906211 web/emoji: implement MSC2545 2024-10-26 15:49:04 +03:00
Tulir Asokan
15d696ae09 hicli/sync: skip linkifying for messages with no special characters 2024-10-25 23:43:12 +03:00
Tulir Asokan
8a34618a70 hicli/html: preallocate space for html sanitization buffer 2024-10-25 23:33:32 +03:00
Tulir Asokan
227ba474ef web/emojipicker: add support for frequently used emojis 2024-10-25 23:02:58 +03:00
Tulir Asokan
72e1bd428e hicli/sync: send account data to frontend 2024-10-25 19:15:22 +03:00
Tulir Asokan
cc0067bb3f web/composer: add edit support 2024-10-25 03:03:15 +03:00
Tulir Asokan
a66c70c241 web/timeline: add hover menu for events
Includes pinning events and a `set_state` command in hicli
2024-10-25 01:50:16 +03:00
Tulir Asokan
6eef047ae5 hicli/html: add todo 2024-10-24 14:54:53 +03:00
Tulir Asokan
abc5327041 hicli: delete room data on leave 2024-10-24 02:14:46 +03:00
Tulir Asokan
5189f86f81 hicli: lower http header timeout after first sync 2024-10-23 20:29:53 +03:00
Tulir Asokan
e243593e06 server: add Cache-Control and ETag headers 2024-10-23 02:26:37 +03:00
Tulir Asokan
c4266fbc22 web/composer: send thread message when replying in thread 2024-10-22 19:53:10 +03:00
Tulir Asokan
014c8c07a8 hicli/database: add temporary hacky fix for reaction aggregations
The aggregations will be redone properly later
2024-10-22 16:36:49 +03:00
Tulir Asokan
27f1d0f3e4 hicli/sync: allow reprocessing encrypted event html 2024-10-22 01:15:45 +03:00
Tulir Asokan
9d96ed1b12 hicli/database: fix FillReactionCounts 2024-10-22 01:09:04 +03:00
Tulir Asokan
f5eeb8461a hicli/sync: enable reaction count collection for all events
The reaction aggregation probably needs to be redone to support finding
the entire event (to see senders and other content like shortcodes),
but this is good enough to get reactions rendering.
2024-10-21 23:11:14 +03:00
Tulir Asokan
afa6d3aa4b hicli/html,web/timeline: add syntax highlighting for code blocks 2024-10-20 15:55:14 +03:00
Tulir Asokan
8cc475e66b hicli/json: add resolve alias command 2024-10-20 14:10:01 +03:00
Tulir Asokan
34346cffec hicli/html: linkify plaintext matrix: and mxc:// URIs 2024-10-20 13:51:55 +03:00
Tulir Asokan
535393d47f hicli/html: add inline images to media references 2024-10-20 13:31:33 +03:00
Tulir Asokan
2c5738f7f2 hicli/database: refactor media cache 2024-10-20 13:21:34 +03:00
Tulir Asokan
0b59b2c733 hicli/pushrules: skip evaluating non-message events in initial sync 2024-10-20 12:52:37 +03:00
Tulir Asokan
4b9e28c644 hicli/database: store tombstone content in room table 2024-10-20 12:28:09 +03:00
Tulir Asokan
f38946b96e hicli/sync: make sorting timestamps more sensible on init sync 2024-10-20 01:20:35 +03:00
Tulir Asokan
e40a97f43b hicli/html: correctly linkify plaintext emails 2024-10-19 17:41:36 +03:00
Tulir Asokan
c6cdb820ea hicli/html: convert plaintext matrix.to links to matrix: URIs 2024-10-19 17:41:36 +03:00
Tulir Asokan
d3decc5255 hicli/pushrules: add todo for saving mute flag in rooms 2024-10-19 02:35:15 +03:00
Tulir Asokan
e78bf640ff server,web/composer: add support for sending media 2024-10-19 02:35:15 +03:00