jdev - 2024-02-22


  1. MSavoritias (fae,ve)

    why would i see this in gajim in the xml console? ``` <body>You received a message encrypted with OMEMO but your client doesn't support OMEMO.</body> ``` the whole stanza: ``` <message xmlns="jabber:client" to="" type="chat" id=""> <request xmlns="urn:xmpp:receipts" /> <markable xmlns="urn:xmpp:chat-markers:0" /> <origin-id xmlns="urn:xmpp:sid:0" id="" /> <encrypted xmlns="eu.siacs.conversations.axolotl"> <header sid=""> <key rid=""></key> <key rid=""></key> <iv></iv> </header> <payload>==</payload> </encrypted> <encryption xmlns="urn:xmpp:eme:0" name="OMEMO" namespace="eu.siacs.conversations.axolotl" /> <body>You received a message encrypted with OMEMO but your client doesn't support OMEMO.</body> <store xmlns="urn:xmpp:hints" /> </message> ```

  2. MSavoritias (fae,ve)

    this was in an omemo chat 1:1. so the message doesnt make any sense there. because i know omemo works

  3. MSavoritias (fae,ve)

    also another question isnt all the presence things wasteful every second? there are so many presence things

  4. jonas’

    high-rate presence typically indicates that someone is having an unstable connection

  5. jonas’

    if you have many contacts, it's likely that you'll see that

  6. jonas’

    CSI (client state indication) reduces the impact for mobile clients

  7. MSavoritias (fae,ve)

    ah yeah my connection is bad. its a sim card router so it makes sense

  8. MSavoritias (fae,ve)

    i thought it was normal

  9. jonas’

    that's not what I meant

  10. jonas’

    other people's connection being bad causes that, nor yours

  11. jonas’

    if you are in a lot of MUCs, you get a bunch of presence from that too (anyone joining/leaving/changing nick causes a presence)

  12. MSavoritias (fae,ve)

    yeah its group chats

  13. jonas’

    regaridng your original issue: the payload contains no data. that's probably why gajim resorts to the fallback body.

  14. jonas’

    the question is how that happened

  15. MSavoritias (fae,ve)

    i send a message saying text and that showed up

  16. MSavoritias (fae,ve)

    the only thing i could think of is that omemo is not builtin so maybe there is some bug there

  17. MSavoritias (fae,ve)

    i have the older gajim

  18. Zash

    MSavoritias (fae,ve), you would see that <body> on every OMEMO message if you looked in the XML console, it's normal and there for clients that do not support OMEMO

  19. MSavoritias (fae,ve)

    right. but the thing is that convo supported omemo on both ends. so it doesnt make sense for gajim to show that fallback

  20. MSavoritias (fae,ve)

    let me try with another chat

  21. Zash

    Did it show that in the chat UI?

  22. Zash

    You said you were looking in the XML console

  23. MSavoritias (fae,ve)

    no its from the console

  24. MSavoritias (fae,ve)

    ah wait so it sends it anyway

  25. MSavoritias (fae,ve)

    just in case

  26. MSavoritias (fae,ve)

    because i am looking at "raw" stanzas right now so the fallback is always there

  27. pep.

    Yeah.. in case another clients chimes in that doesn't support OMEMO.. even though nowadays there is EME (and there's been for some time already)

  28. pep.

    But it's the case for many features anyway.. sending stuff in <body/> as fallback

  29. MSavoritias (fae,ve)

    but like thats 1:1 tho so there will never be another device

  30. MattJ

    They might add a new device which fetches that from MAM

  31. MSavoritias (fae,ve)

    right forgot that scenario :P

  32. pep.

    MAM and carbons, breaker of expectations since 2012/2010

  33. MSavoritias (fae,ve)

    at least carbons are slowly on their way out with im-ng

  34. singpolyma

    Maybe 😬

  35. pep.

    That doesn't help with this issue :x

  36. singpolyma

    imng doesn't actually solve the main thing that carbons are for

  37. MSavoritias (fae,ve)

    true but afaik MAM we have nothing else no?

  38. singpolyma

    I don't think this is even an issue... Just working as designed

  39. MSavoritias (fae,ve)

    > imng doesn't actually solve the main thing that carbons are for the consistent history right? yeah

  40. MSavoritias (fae,ve)

    that a way to order things without time is one my long term todo list

  41. jonas’

    singpolyma, huh, which of carbons' use cases does im-ng not solve?

  42. singpolyma

    Syncing outbound

  43. Zash

    and carbons doesn't sync your outbound mam ids

  44. MSavoritias (fae,ve)

    why cant you use MAM to sync outbound instead of carbons?

  45. MSavoritias (fae,ve)

    to fill holes in the history with other devices that is

  46. Zash

    how? polling? we don't do that here 🤚️

  47. singpolyma

    Could broadcast your mam entries to yourself... Aha that's called carbons

  48. singpolyma

    No reason to change what's working 🙂

  49. MSavoritias (fae,ve)

    except making it simpler :)

  50. singpolyma

    That's what libraris are for. And sasl2 a bit

  51. MSavoritias (fae,ve)

    ah right sorry. yeah clients dont have to care probably

  52. MSavoritias (fae,ve)

    for me as a person writing a library it is simpler

  53. singpolyma

    Sure. That's why the pay us the big bucks jk