XSF Discussion - 2020-12-28


  1. marc

    Here is an example how I would do an export / client migration: https://paste.centos.org/view/b09f3029

  2. marc

    I use the <delay> element to store the message time

  3. jonas’

    isn’t there a XEP for that?

  4. marc

    Of course, lot's of omemo infos are missing

  5. jonas’

    ah, client side

  6. marc

    client side, yes

  7. jonas’

    "stuff you only need with strange E2EE :-X"

  8. jonas’

    "stuff you only need with strange E2EE" :-X

  9. marc

    I would call it "State of the art E2EE in IM"

  10. marc

    :D

  11. marc

    Still, you need that without e2ee too

  12. lovetox

    marc stanza-id needs to be in there

  13. lovetox

    this means i need to save every message so i can convert it back to xml

  14. lovetox

    for example i dont save the resource from which the message came

  15. lovetox

    never had the need for that

  16. marc

    lovetox, okay, good point

  17. marc

    Dino stores that information

  18. marc

    lovetox, isn't the id attribute the stanza id?

  19. Zash

    it's not

  20. Zash

    maybe it was clearer when it was called archive-id

  21. marc

    ah, okay

  22. marc

    what's the reason not using the id attribute as uuid?

  23. Zash

    This feels like one of the recurring discussions we have. I'm hoping the reasoning is written down somewhere.

  24. marc

    No, I don't want to discuss this. A pointer to the reason would be enough :D

  25. jonas’

    historically, there is no guarantee that the id attribute is sufficiently unique

  26. MattJ

    MAM archives need a unique id to reference stored messages. The id attribute is not guaranteed to be present or unique (it is controlled by the sending client)

  27. MattJ

    Early versions of XEP-0313 added an element: <archived by='[address of archive]' id='[archive id of message]' />

  28. MattJ

    Then it was decided that it would be generally useful if other XEPs could use these guaranteed unique ids as well, so it was split out to stanza-id

  29. MattJ

    The id attribute remains useful to the sending client as a way of tracking error responses (kind of), but for long-term unique identifiers, stanza-id is the preferred way to refer to a stanza

  30. MattJ

    origin-id was added to the stanza-id XEP as a hacky workaround for certain MUC services that did not preserve the 'id' attribute on messages, but I sense that most people would like to see that to be removed now

  31. Zash

    Errors having the same id as the stanza they are an error-reply to makes @id non-unique..

  32. jonas’

    true

  33. Zash

    In a backup it would make some sense to stick <stanza-id by="local client full jid" id="whatever primary key of local database"/> in there

  34. Zash

    Althoooooo

  35. Zash

    You need (@from, @id) for uniqueness in any case, and errors would have @to/@from swapped.

  36. marc

    Ah, thanks for the explanation

  37. marc

    New version that generates <stanza-id> elements and omits to/from for the own account: https://paste.centos.org/view/75801e0e

  38. Ge0rG

    Zash [17:16]: > In a backup it would make some sense to stick <stanza-id by="local client full jid" id="whatever primary key of local database"/> in there But what if your local database is using auto increment integer?

  39. Zash

    What about it?

  40. Ge0rG

    A stanza-id must be globally unique

  41. Zash

    Does it?

  42. Zash

    It's still scoped by stanza-id/@by, no?

  43. Ge0rG

    Oh, right!

  44. Ge0rG

    So it doesn't guarantee the one thing it was supposed to fix about @id

  45. Ge0rG

    Despite the title

  46. Ge0rG

    You had one job, XEP-0359

  47. Zash

    > It is RECOMMENDED that the ID generating service uses UUID

  48. moparisthebest

    today I learned something new, that XMPP is a "store and forward" protocol which makes it unsuitable for messaging

  49. moparisthebest

    however, Signal *is* suitable for messaging

  50. moparisthebest

    I'm waiting in suspense for the explanation, but I'm guessing it'll never come

  51. edhelas

    moparisthebest we should make XMPP over Signal Protocol then, should solve this problem

  52. moparisthebest

    he responded, many XEPs are in draft and he was in a big company once and the user list made xmpp "fall over"

  53. moparisthebest

    don't get what this has to do with Signal but oh well

  54. moparisthebest

    why do I even talk to people on the fediverse lol

  55. edhelas

    time to build a social network on top of XMPP !

  56. Link Mauve

    I remember some xeps.xml file listing every XEP published, do you remember where it is?

  57. Zash

    It got replaced by something with a slightly different format

  58. Zash

    xeps-list.xml or somesuch?

  59. Zash

    Link Mauve, https://xmpp.org/extensions/xeplist.xml

  60. Link Mauve

    Thanks. :)