jdev - 2025-05-01


  1. lovetox

    i want to create blocking list for muc users on pubsub, every item is one user that is blocked, though i struggle a bit with the item id. as it needs to be unique it cant be the room jid alone. my idea was something like "roomjid:occupant-id". but now i question if ":" is a good separator. it could be in the occupant-id

  2. lovetox

    but if i got this correct, it cannot be in a bare jid,which the muc would be

  3. lovetox

    so it should be safe splitting on this separator on first occurence from left

  4. lovetox

    anyone has a better approach or an opinion about that?

  5. lovetox

    could i run into a occupant id which has not allowed characters in an attribute?

  6. lovetox

    could i run into a occupant id which has not allowed characters for an attribute?

  7. singpolyma

    Why not roomjid/occupantid ?

  8. singpolyma

    There are no not allowed characters for an attribute

  9. lovetox

    good idea with the / seems obvious

  10. moparisthebest

    Why not just store it locally?

  11. moparisthebest

    #1 it's kind of a privacy issue unless users know you are uploading their blocks #2 maybe users want different blocklists for different computers, I know at least a few IRC users who have one blocklist for work and none or smaller for home

  12. singpolyma

    Users in general expect blocks to be uploaded and sync'd and occupant ids are hardly full of details the server doesn't already know

  13. moparisthebest

    I just listed a use case where they don't lol

  14. moparisthebest

    servers don't currently store occupant-id either

  15. singpolyma

    They do if you get a pm

  16. singpolyma

    Otherwise they don't usually choose to store, sure, but it's not secret information

  17. moparisthebest

    store vs not is already a huge difference