Commit graph

11 commits

Author SHA1 Message Date
Tulir Asokan
1d9b6a42c9 Use utility method for escaping text when generating reply fallback 2023-06-23 12:35:53 +03:00
Tulir Asokan
77f7e00759 Handle m.emote fallbacks in reply fallback trimming safety 2023-06-23 12:29:11 +03:00
Tulir Asokan
8a0f888a21 Add extra check for trimming plaintext reply fallback
This should avoid most edge cases with messages starting with
blockquotes when reply fallbacks are removed.
2023-06-23 12:16:26 +03:00
Tulir Asokan
e511c408c3 Deprecate MessageEventContent.GetReplyTo
RelatesTo.GetReplyTo can be used instead since it's nil-safe as of
78f80c20b1
2022-10-28 23:44:32 +03:00
Tulir Asokan
77543cc02c Remove custom reply relation type 2022-05-28 22:04:09 +03:00
Tulir Asokan
5a4618d04e Add method for ensuring MessageEventContent has a FormattedBody 2022-04-05 12:50:06 +03:00
Tulir Asokan
47a5a0c5e1 Replace newlines when generating HTML from plaintext 2022-03-02 23:57:54 +02:00
Tulir Asokan
3af22dc542 Use net.maunium.reply instead of m.reference as fake reply relation type 2020-10-27 00:42:53 +02:00
Tulir Asokan
165bdd1dd1 Make it safe to call RemoveReplyFallback multiple times 2020-05-08 21:31:23 +03:00
Tulir Asokan
f4fc99cddb Overhaul event content representation 2020-04-19 03:23:27 +03:00
Tulir Asokan
941515e73d Rename events to event 2020-04-16 17:29:47 +03:00
Renamed from events/reply.go (Browse further)