jdev - 2020-08-13


  1. lovetox

    hm, regarding UserActivity and UserMood

  2. lovetox

    right now Gajim deletes both from pep when we go offline

  3. lovetox

    how much sense does this make in a multi device setup?

  4. Zash

    good question

  5. lovetox

    i see the idea that it does not make much sense to have this info published if im not online

  6. lovetox

    i could check if another client is online, and only delete if im the last

  7. Zash

    If anything I think these should have some kind of timeout, after which they're reset.

  8. lovetox

    yeah my timeout was "i go offline"

  9. lovetox

    is there not a timeout feature in pubsub

  10. Zash

    poezio behaves the same way I think, clearing PEP on exit

  11. Zash

    Hehe, are you sure? Maybe if you refresh the page a few times it'll appear.

  12. jonas’

    hah

  13. pep.

    https://lab.louiz.org/poezio/poezio/-/issues/3467 poezio also fails to clear these nodes when not connected. (weird!)

  14. lovetox

    <field var='pubsub#item_expire' type='text-single' label='Number of seconds after which to automatically purge items. `max` for no specific limit other than a server imposed maximum.'/> <field var='pubsub#itemreply'

  15. Zash

    Hahaha!

  16. jonas’

    given that you can’t even always control when you’re going offline, the right thing™ would be to fix this on the recipient or server side, wouldn’t it?

  17. jonas’

    lol

  18. lovetox

    probably no server implements it

  19. pep.

    And some are gonna rant about 'max' again anyway :p

  20. Zash

    Hrrr

  21. lovetox

    but not my problem i guess

  22. lovetox

    i publish this with 24 hour expire

  23. jonas’

    :)

  24. Zash

    Wait was that sneaked in with the max_items change?

  25. pep.

    Zash, I doubt it

  26. jonas’

    can this be used as a publish-options thing?

  27. jonas’

    and it’s not clear to me if the timer is reset on every config change/item publish

  28. Zash

    Publish options would be cool indeed

  29. lovetox

    jonas everything in the config form can be used as publish options

  30. pep.

    jonas’, yeah that'd be good to know

  31. pep.

    And not "implementation defined"

  32. lovetox

    but server tend to only support some config options as publish options

  33. Zash

    activity = in a meeting, expire = 1h etc

  34. jonas’

    lovetox, but then it affects the entire node, I suppose

  35. pep.

    lovetox, so you're gonna keep a timer and republish every 24h?

  36. lovetox

    yeah thats good, as this node has only one item

  37. lovetox

    pep., why would i republish

  38. Zash

    For these OG extended presence things that's fine

  39. lovetox

    i tell the user, this activity holds for 24 hours

  40. lovetox

    afterwards you have to set something new yourself

  41. pep.

    ok

  42. Zash

    I think I've seen this kind of thing in other chat things.

  43. lovetox

    yes whatsapp does this with status messages

  44. Zash

    At least setting "busy" that expires after a while

  45. lovetox

    only valid for 24 hours

  46. Zash

    Someone™ still has to write the XEP about moving the rest of <presence> stuff into PEP

  47. Kev

    Yeah, sorry.

  48. lovetox

    ok ejabberd supports this config option not at all

  49. lovetox

    and prosody also not

  50. lovetox

    of course good things can not be happen

  51. Zash

    file feature request

  52. lovetox

    <field var='pubsub#purge_offline' type='boolean' label='Whether to purge all items when the relevant publisher goes offline'/>

  53. lovetox

    this is also intersting

  54. Zash

    Ha!

  55. Zash

    That is easier to implement too

  56. lovetox

    yeah but not that nice ..

  57. lovetox

    the delay thingy is definitly nicer

  58. Zash

    If it's bound to the session it'd be weird if stuff gets reset because you got temporarily disconnected

  59. jonas’

    stream management saves you

  60. lovetox

    do i miss something or does pubsub not hold the publication date somewhere

  61. lovetox

    can i get the time something was published?

  62. jonas’

    not out of the box

  63. edhelas

    https://nl.movim.eu/?node/pubsub.movim.eu/Dino :)

  64. lovetox

    what do you think about multiline status messages

  65. lovetox

    should a client allow them or not?

  66. lovetox

    currently Gajim does a to_one_line() on user input

  67. lovetox

    but im not sure i should, clients which can only show oneline can format the text themself when displaying