jdev - 2022-08-21


  1. lovetox

    Question about presence, when i don’t share my presence with a contact, but he with me, how does his server know that i am online and that i want his presence?

  2. lovetox

    as my server is not allowed to send to the other server that im online

  3. lovetox

    oh i guess the remote server just sends the presence only whenever the presence changes

  4. MattJ

    Yes. Your server may also request their latest presence (by sending a presence probe)

  5. lovetox

    ah, nice

  6. lovetox

    i have a situation where in my roster i have a contact with subscription=from

  7. lovetox

    and in the roster on the other server, iam with subscription=none

  8. lovetox

    this should not be possible or?

  9. MattJ

    It's not normal, no. It can happen though... e.g. due to server downtime or data being restored from a backup. However there is a healing mechanism that should lead them to synchronize state.

  10. MattJ

    I guess from/none may not update since the other server wouldn't ever send a probe

  11. lovetox

    i can reproduce this with the movim server 100% of the time

  12. lovetox

    if i am (acc on movim server) change the roster contact to "from"

  13. lovetox

    movim server sends me back a roster push with subscription = none

  14. lovetox

    hm maybe im doing something wrong

  15. lovetox

    as clients send only presence, we do not change the subscription state of the roster

  16. lovetox

    it happens when i want to remove his right to see my presence

  17. lovetox

    maybe i have to read up on that

  18. lovetox

    look at this interaction

  19. lovetox

    https://paste.gajim.org/view/6de697d3

  20. lovetox

    i request the roter, as prove subscription is "both"

  21. lovetox

    then i send "unsubscribed", server answers correctly with "from"

  22. lovetox

    then sends immediatly "none"

  23. MattJ

    Do you have any other clients logged in on the same account?

  24. MattJ

    Some might automatically unsubscribe from someone who unsubscribes from you

  25. lovetox

    Yes. Good tip will look into it