jdev - 2026-03-04


  1. lol

    Trying to figure out what message the duplication code should look like in practice. Should I only look at what the server assigns? Is there any reason to look at origin ID?

  2. lol

    Trying to figure out what message duplication code should look like in practice. Should I only look at what the server assigns? Is there any reason to look at origin ID?

  3. lol

    Trying to figure out what message duplication code should look like in practice. Should I only look at what stanza id the server assigns? Is there any reason to look at origin ID?

  4. singpolyma

    > you'd have to define what "HTML" is as well, as theres the Living Standard HTML of today, HTML4.01, HTML5, the earlier versions of HTML, etc... These are all so similar as to be essentially the same thing

  5. singpolyma

    > Trying to figure out what message duplication code should look like in practice. Should I only look at what stanza id the server assigns? Is there any reason to look at origin ID? No. Origin ID is a historical artifact

  6. lovetox

    lol: you need to deduplicate also message you sent, for which you have no stanza id

  7. lol

    > lol: you need to deduplicate also message you sent, for which you have no stanza id Omg, how?..

  8. lol

    Not by assigning the attr id=... ?

  9. singpolyma

    Indeed. You can trust the attr id in your own sent

  10. lol

    Okay so messages end up having like what three IDs?

  11. lol

    Origin id - ignore completely Server assigned id - dedup Attr id - also dedup?

  12. singpolyma

    I mean two. Origin ID doesn't need to be there

  13. singpolyma

    and when it is there approximately all implementations set it equal to attr id

  14. singpolyma

    Attr id you can only be sure is unique on your own sent messages. Though it's used in a few other contexts but not for dedup

  15. singpolyma

    (you can be sure on yours because you set them and you chose unique ids riiiiiight?)

  16. lol

    Ok so my client shouldn't look at attr id other than for my own messages. Interesting.

  17. singpolyma

    Everything else you'll have a server ID. Except for when you don't but I've mostly chosen to see no evil on those cases

  18. singpolyma

    nothing to dedup in those cases at least

  19. singpolyma

    (it's mostly when something doesn't go into mam at all)

  20. detente

    you'd have to ignore a bunch of new elements added since HTML5 to say they're the same, they imply that your program will support A/V functionality and other stuff. does the XMPP client just make them a no-op and ignore them in that case?

  21. singpolyma

    right. unsupported HTML elements are basically equivalent to <span> in HTML semantics generally

  22. singpolyma

    ie you can just ignore them

  23. detente

    then you mean a subset of HTML as this is what HTML is now

  24. detente

    https://html.spec.whatwg.org for reference, this is HTML today.

  25. singpolyma

    I'm very very familiar with HTML and what it is today yes :)

  26. singpolyma

    a user agent is free to not support a tag and is also free to render tag in any way it wants. that's sort of the whole point. just like with xmpp

  27. singpolyma

    I don't know why we're discussing this as if it is hypothetical. Many messaging and other systems are using html like this already it's hardly a unique idea

  28. detente

    browsers that omit too many end up garbling some web pages to being almost unreadable in practice

  29. singpolyma

    sure. luckily we're not needing to render web pages

  30. detente

    i've only really used communications programs supporting HTML that were proprietary and required a web engine to function. never seen any with different interpretations of HTML in messages in practice

  31. detente

    the rendering of messages between clients might look strange in some corner cases. i suppose inputting raw HTML isn't too quick either so there might be a markup language that translates to it when someone wants bold text or something like that real quick

  32. moparisthebest

    no sane messenger is going to have users manually type html

  33. moparisthebest

    anyone remember bbcode on forums? we should bring that back 🤣

  34. detente

    people used to write HTML web pages by hand...

  35. detente

    anything is possible

  36. moparisthebest

    sure but writing it in an instant messenger still seems crazy, do what you want though

  37. snit

    i could see a messenger _allowing_ direct html input, but i'd sure hope they'd have something more user friendly like markdown for most use-cases....

    👆️ 1
  38. detente

    yup

  39. singpolyma

    Or like having a button that makes things bold, heh