-
edhelas
https://www.a2p.it/tech-stuff/coquistt-signal-love-death-to-voice-messages/
-
MattJ
jmp.chat already does this for voicemails (it sends an audio message, followed by a transcription). I was considering a bot to do similar - people keep sending voice messages in public channels....
-
Sam
lovetox: pre-formatted spans can't contain other styling, so it would just be monospace. https://xmpp.org/extensions/xep-0393.html#mono
-
Sam
I'm reasonably sure my implementation is correct and follows all the rules exactly, I tried to write good test cases, so you can test here too: https://go.dev/play/p/yVFWvoA5H1_x
-
Sam
I have a giant JSON file of the tests you're welcome to use if you'd like
-
Sam
I just better documented how to generate the language-agnostic tests here, in case anyone is interested: https://github.com/mellium/xmpp/tree/main/styling
-
wurstsalat
Sam, do you parse quotes with a nesting limit?
-
Sam
wurstsalat: I don't remember, I think I just count them and report the number, but it seems sane to cap it at some point when displaying it
-
Sam
(I just stepped away or I'd look)
-
lovetox
Sam, i meant without the preformatting
-
lovetox
i must send it as preformatted or else Gajim trys to render 20 nested quites✎ -
lovetox
i must send it as preformatted or else Gajim trys to render 20 nested quotes ✏
-
Sam
Oh, hah, gotcha. Yah, that would be many nested quotes if it starts at the beginning of a line
-
lovetox
so a quote does not actually need text
-
Sam
Oooh, good question
-
lovetox
obviously i need to limit the recursion here
-
lovetox
and with that any client
-
lovetox
im sure you can just kill every client that has no recursion limit here
-
lovetox
its trivial to send you a text with a 100.000 nested quotes
-
Sam
I don't think it needs text, but I'm not at my computer to check
-
Sam
But yes, a limit is good