jdev - 2022-06-14


  1. edhelas

    https://www.a2p.it/tech-stuff/coquistt-signal-love-death-to-voice-messages/

  2. 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....

  3. Sam

    lovetox: pre-formatted spans can't contain other styling, so it would just be monospace. https://xmpp.org/extensions/xep-0393.html#mono

  4. 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

  5. Sam

    I have a giant JSON file of the tests you're welcome to use if you'd like

  6. 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

  7. wurstsalat

    Sam, do you parse quotes with a nesting limit?

  8. 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

  9. Sam

    (I just stepped away or I'd look)

  10. lovetox

    Sam, i meant without the preformatting

  11. lovetox

    i must send it as preformatted or else Gajim trys to render 20 nested quites

  12. lovetox

    i must send it as preformatted or else Gajim trys to render 20 nested quotes

  13. Sam

    Oh, hah, gotcha. Yah, that would be many nested quotes if it starts at the beginning of a line

  14. lovetox

    so a quote does not actually need text

  15. Sam

    Oooh, good question

  16. lovetox

    obviously i need to limit the recursion here

  17. lovetox

    and with that any client

  18. lovetox

    im sure you can just kill every client that has no recursion limit here

  19. lovetox

    its trivial to send you a text with a 100.000 nested quotes

  20. Sam

    I don't think it needs text, but I'm not at my computer to check

  21. Sam

    But yes, a limit is good