Modern XMPP project discussion - 2021-02-14


  1. Stefan

    Hi. I have a question about the implementation of messages in a groupchat. Who do I identify messages send by me? Do I have to check my state of the client ( "Profanity knows that I'm in this MUC with Nick Stefan") to know that the incoming message has been send by me or do I also need to check the id of the message.

  2. Stefan

    The second question is, do you display the message which is the outgoing message and ignore the incoming message or should we ignore the outgoing message and display the incoming message.

  3. jonas’

    Stefan, do you want to identify messages sent by this specific client (then you need to go by ID / body in addition to the nickname) or do you want to identify messages sent by the user (nickname only)?

  4. jonas’

    Stefan, I think the best UX is to display the outgoing message immediately, wait for and match the reflected message from the MUC and use that to place a tickmark or something next to the outbound message

  5. Stefan

    Thanks, I will try to implemented it in this way. I need to read more code, but should be possible.

  6. Zash

    Why not replace the outgoing placeholder with the incoming message?

  7. jonas’

    yeah, that’s even better

  8. Ge0rG

    Stefan: https://wiki.xmpp.org/web/XEP-Remarks/XEP-0045:_Multi-User_Chat#Matching_Your_Reflected_Message

  9. Ge0rG

    Somebody should add the replacement thing.

  10. L29Ah

    omg

  11. cagent

    hi

  12. cagent

    I've been playing with signal desktop messenger for some days, it has good features like stickers, disapearing messages, message reactions, blurring photos, storage management, photos/videos automatically removed after they are seen, etc Are all of these features possible using xmpp, so are these only overlayers of a xmpp client? How difficult would it be to implement all of this?

  13. jonas’

    cagent, https://chat.modernxmpp.org/paste/4e1bda40-b282-4743-8528-7b8395f7878b

  14. L29Ah sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/jonas-loves-matrix.txt >

  15. jonas’

    L29Ah, you drunk?

  16. L29Ah

    no

  17. cagent

    > cagent, > https://chat.modernxmpp.org/paste/4e1bda40-b282-4743-8528-7b8395f7878b to blurr elements of the photograph like faces and words like here:

  18. cagent

    https://xmpp.chapril.org/upload/b56094353a26dce84bce645acf9dfd4a6d6a6e0b/26BITjPYx4A21dDveTfF/wersm-signal-blur-faces-fb.jpg

  19. jonas’

    ah

  20. jonas’

    client side only feature obviously

  21. jonas’

    would make little sense if it was done on the server side

  22. jonas’

    re "how much time will that take": depends on how much money you throw at developers

  23. cagent

    storage management: you can see how much disk space the files take on your local device

  24. jonas’

    isn’t that a standard android feature?

  25. cagent

    about disapearing messages some xmpp servers keep the messages only for a few days so that should do trick but some servers can keep them indefinitely (as long as they have disk space left)

  26. jonas’

    cagent, if you’re worried about things on the server, use end-to-end encryption.

  27. cagent

    > isn’t that a standard android feature? yes you can manage this on android

  28. cagent

    well I haven't used xmpp a lot but on signal the database that has all the files is encrypted so you cannot manage this with the android file manager applications

  29. cagent

    it's like signal is a vault and you have to choose between to delete signal+your data or to keep everything encrypted

  30. purplebeetroot

    I don't know if you noticed this already, if not it would be usefull to reach out to systemli.org (a tech collective popular among the activist szene) They started to host matrix. For their launch they wrote a blog post, that doesn't sound well for xmpp. Just as an example: "[XMPP] also does not offer a usable option for encrypting group communication (E2EE)." Full blogpost here: https://www.systemli.org/en/2021/01/25/new-service-modern-messenger-matrix/

  31. Zash

    Fun.

  32. Zash

    purplebeetroot: Well, E2EE group chats exist in XMPP too, so either they're misinformed, spreading FUD or have some definition of "usable" that manages to exclude XMPP without also excluding Matrix.

  33. purplebeetroot

    Well I know. Just wanted to leave that here, as I don't know if I'll find the time to contact them. And you're all anyway much better informed about XMPP then I am.

  34. raucao

    OMEMO with a private group is definitely not where it should be IMO. never worked for me ever. someone always missing keys of someone else