jdev - 2024-08-26


  1. Martin

    @marcan@treehouse.systems đź”— https://social.treehouse.systems/users/marcan/statuses/113027398881744258 - Say what you want about Telegram, but it has one of the best data export/backup features I've ever seen. Fully client-driven, with real-time progress display (and even the ability to manually skip large file downloads on-the-fly). The output is a bunch of plain HTML pages with just 200 lines of pure JS (no frameworks) for some minor interactivity features, that loads instantly and looks roughly like the Telegram client itself, easy to browse and search. The JSON is one big blob with all the same data in a trivial format. The text encoding is interesting: Telegram supports rich text, but instead of in-line HTML-style markup, in the JSON it's encoded as JSON objects representing the different spans of text with different format. Very clean. Something like this might also be nice in xmpp.

  2. nicoco__

    > representing the different spans of text with different format.

  3. nicoco__

    > representing the different spans of text with different format. hey, that' s XEP-0394 ;)

  4. goffi

    nicoco__: Slidge is not using XEP-0100 (Gateway Interaction), is it? It seems to be using a "register" command with XEP-0050 instead, any reason for that?

  5. nicoco__

    goffi: yes. the reason is 0077 is single step, single form

  6. nicoco__

    when that's enough, it uses it

  7. nicoco__

    but sometimes, we need a 2FA code by email, SMS, or official apps…

  8. nicoco__

    This is one of the reasons I _have_ to write "XEP-xxxx Gateway Interaction of the future" one day…

  9. nicoco__

    Slidge also does not respect the part of XEP-0100 where you're supposed to log out from the bridged network when you go offline - this just does not make sense with mobile devices, and think about everyone expects gateways to act as bouncers…

  10. goffi

    nicoco__: If I'm not mistaken, you can use arbitrary data form with XEP-0077, which can use several steps.

  11. goffi

    nicoco__: oh, yes the log-out part is clearly outdated.

  12. singpolyma

    A data form cannot have several steps

  13. singpolyma

    That is the reason to use XEP-0050 with nodes like jabber:iq:register to mimick this

  14. nicoco__

    haha I was about to ping you singpolyma

  15. singpolyma his ears aflame

  16. goffi

    Oh right I'm confusing with ad-hoc commands.

  17. singpolyma

    I tried to write a XEP to extend IBR to multi step once, but that was soundly hated. I think 0050 is a better solution anyway

  18. goffi

    So XEP-0050 with a "register" node is the recommended way nowadays? Is there any standardisation of this or it's just de-facto standard?

  19. singpolyma

    I use the node "jabber:iq:register" and treat it specially in UI sometimes. But no I haven't XEP'd it, it's just documented in my wiki right now

  20. goffi

    I'm asking because I've started work on my email gateway, and I was going the XEP-0100 way.

  21. singpolyma

    If one step is sufficient for you then using IBR is fine

  22. singpolyma

    Are you going to need registration at all for an email gateway?

  23. goffi

    for IMAP/SMTP credentials yes.

  24. singpolyma

    Ah interesting, you're going that way. I understand