jdev - 2023-01-23


  1. rom1dep

    I'm willing to die on this hill, though, that a client that "shows you something but sends something else to the rest of the world, and gives no indication of it" isn't one that most people would want to trust with their messages

  2. MSavoritias (fae,ve)

    Completely agree

  3. MattJ

    Well, welcome to XMPP. It sounds like a network with a diverse ecosystem of software isn't what you're looking for 🙂

  4. MattJ

    I only ever see links in my (terminal-based) client

  5. jonas’

    MattJ, "shows you something and sends something else" is different from "sends something which other clients may intrepret less fancily"

  6. MSavoritias (fae,ve)

    Yep

  7. jonas’

    (the first sounds like a violation of intent, while the second is, indeed, what you'd expect in a federated network)

  8. rom1dep

    > (the first sounds like a violation of intent, while the second is, indeed, what you'd expect in a federated network) 👆

  9. Menel

    With message retraction, the retracting client shows, "it has been deleted", but my client will show the original and a message about the attempt ¯\_ (ツ) _/¯

  10. MSavoritias (fae,ve)

    And?

  11. MattJ

    jonas’ [08:48]: > MattJ, "shows you something and sends something else" is different from "sends something which other clients may intrepret less fancily" Sorry, I don't see a distinction in practice. Either way you can't guarantee what someone is going to see on the other side.

  12. jonas’

    MattJ, the first one at least tries

  13. jonas’

    the first case sounds like the order of magnitude of a client adding a "not" before every verb.

  14. jonas’

    (but only on the wire)

  15. MattJ

    That's not what is happening in the issue that sparked this discussion though

  16. MattJ

    What Dino sends on the wire matches what it displays to the user

  17. jonas’

    scrollback, how does it work

  18. MSavoritias (fae,ve)

    But it is seen as a "bug" which is what was discussed here

  19. MattJ

    Yeah, and I think it's a stretch to call it a bug

  20. jonas’

    it's a bug if it violates user expectations, isn't it?

  21. MattJ

    To be clear the two cases are mod_pastebin changing long text to a link, and mod_restrict_media stripping oob tags

  22. lovetox

    i never understood the word bug as violating user expactations

  23. lovetox

    a bug is when the software does not what the *developer* intended

  24. MattJ

    Every user has different expectations

  25. lovetox

    not what the user wished it would do

  26. jonas’

    so we're talking about the <oob/> removal?

  27. jonas’

    right

  28. MattJ

    They're both the same category I believe

  29. jonas’

    I would wish for dino to show what the server did, because that also helps with servers which *have* to change even the text (looking at you, biboumi)

  30. jonas’

    are there words in modernxmpp on this topic?

  31. jonas’

    seems like there should be, i.e. "what to do if the MUC reflection differs from what we sent"

  32. MattJ

    It's not covered there, no

  33. jonas’ puts it on his now actually existing todo list

  34. MattJ

    I doubt it would sway larma if it was 🙂

  35. jonas’

    may or may not, but "we" should form a consensus on what clients should do nontheless, IMO

  36. lovetox

    but the biboumi stuff is weird

  37. lovetox

    so it splits my message in 3

  38. lovetox

    does one of the 3 messages actually have the message id i added?

  39. Kev

    What the server sends is the definitive form. I think it's fine for clients to show the sent form until the definitive form is received, as long as they mark it as transient and replace it when received.

  40. lovetox

    biboumi is kind of special case, its not mere rewriting a body or message

  41. lovetox

    it adds a inifinite amount of new messages instead

  42. jonas’

    lovetox, yes, all have message IDs, and the first one will be clearly associated to your original message

  43. MattJ

    Kev, except that's not written anywhere

  44. Kev

    Sure. It was a response to Jonas asking for what we should do.

  45. jonas’

    (via origin-id passing or @id passing)

  46. lovetox

    that would actually be a good use of origin id?

  47. lovetox

    if all 3 new message have the origin-id set to the original message-id?

  48. MattJ

    Hah, making origin-id not unique? That would be great :P

  49. jonas’

    dear lord

  50. lovetox

    :D

  51. jonas’

    but eh

  52. jonas’

    I'm on board with that

  53. jonas’

    but how would you know the splitting of your message had completed....

  54. lovetox

    but yeah .. this is problematic i think gajim also expects only one message in the database with a unique origin id

  55. flow

    why not add an element to the reflected parts: <split-from origin-id="foo" part="1"/>?

  56. jonas’

    would wfm

  57. Menel

    Only for bimboumi? Does it change anything for anyone?

  58. flow

    maybe some can put this information to good use, maybe not. but it appears trivial to add, so it seems worth a try, err experiment