jdev - 2026-06-06


  1. lovetox

    singpolyma, you support 172 nickname in muc presences as i heard

  2. lovetox

    is there anything special you did to display that, or can simply anyone now assume the same nickname

  3. lovetox

    i kind of think that does not really introduce some real new attack surface .. but i wonder how other platforms deal with that, or maybe it has been shown in practice to be not a problem at all

  4. singpolyma

    I only actually show it in some special circumstances right now since no MUC I know of supports enforcing policy on these

  5. singpolyma

    (the special circumstances I still allow without any disco are a hack where if the nick punycoded matches the resource then I show it)

  6. lovetox

    meh, almost no value for the complexity ..

  7. singpolyma

    Yes I agree. I did as an experiment for the "emoji in MUC nick" issue but it's not my favourite thing as is

  8. lovetox

    so this is then a special feature for transports only

  9. singpolyma

    partly yeah. Slidge uses it when the foreign user has emoji in nick etc

  10. lovetox

    damn PM is so broken

  11. lovetox

    we forgot to add to xep0045 that server MUST add the PM marker when sending message errors

  12. moparisthebest

    I still think the only way is for clients to be forever aware once they join a muc that all messages from that bare JID are from a muc and all messages from other JIDs are not MUCs regardless of that marker

  13. moparisthebest

    it's just not enforced by any server ever so can't really be trusted in an open network

  14. lovetox

    but sometimes you setup a new client, and then you miss that knowledge

  15. lovetox

    also its a bad architecture, if i need to check my db everytime i want to interpret a message

  16. moparisthebest

    another (easier imho) alternative is to have a stream for MUCs and a different stream for not-MUCs, then you always know without looking up anything

  17. moparisthebest

    I guess that leaves... old MAM entries for MUCs you've already left on an old client ? I don't know the fix there...

  18. lovetox

    the way it was done afterwards is the right direction, the server must mark that in the message

  19. lovetox

    we just forgot errors

  20. lovetox

    if i would start new, i would add a new message type=pm even

  21. moparisthebest

    what server must mark them ? and what server must un-mark them if they come from a not-MUC ?

  22. lovetox

    of course the sender

  23. lovetox

    why would you need to unmark something

  24. moparisthebest

    the second part is the big missing piece that even if it were spec'd now can't be relied on for years

  25. lovetox

    it is speced, MUCs mark PMs

  26. lovetox

    and since they do, this works ok

  27. moparisthebest

    > why would you need to unmark something oh because an attacker can spam the crap out of you with messages they mark as a MUC PM and most clients handle this very very poorly

  28. lovetox

    ?! they can do this with any other message type also

  29. lovetox

    there is zero difference

  30. moparisthebest

    as in messages or a phone ring from a random muc participant and don't even show enough in the UI to let you block them

  31. singpolyma

    > if i would start new, i would add a new message type=pm even I mean, if I would start new I wouldn't include "muc pm" as a thing

  32. singpolyma

    > as in messages or a phone ring from a random muc participant and don't even show enough in the UI to let you block them that's bugs. we should fix bugs of course

  33. lovetox

    anyway, other topic, i see in prosody mucs

  34. lovetox

    muc#roomconfig_allowpm = moderators

  35. lovetox

    and i should interpret that as not only moderators *can* send PMs

  36. lovetox

    also users can send PMs to moderators?

  37. singpolyma

    yes

  38. lovetox

    or is this an extension that only prosody has and is not dependent on that setting

  39. singpolyma

    AIUI that means can send pms to moderators and moderators can pm anyone

  40. moparisthebest

    or maybe mods can always send PMs regardless of settings ? 🤔

  41. lovetox

    its pretty clear from the XEP that the setting controlls who is allowed to send PMs

  42. lovetox

    the other direction is i think a prosody interpretation or extension

  43. lovetox

    i just wonder if other servers support that

  44. moparisthebest

    does it make sense to ever restrict an admin from doing anything ?

  45. lovetox

    maybe not, but the spec is written like it is, so there is no changing it

  46. lovetox

    but im interested in the *other* direction

  47. lovetox

    a visitor can PM a Mod

  48. lovetox

    as it seems in prosody mucs

  49. lovetox

    its even unclear why this was added in prosody

  50. lovetox

    as we have a dedicated mechanism to request voice

  51. lovetox

    somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?!

  52. lovetox

    i dont understand the dynamics at play here

  53. singpolyma

    > i just wonder if other servers support that I'm pretty sure ejabberd did first, but not sure what their config form looks like to do it

  54. singpolyma

    > as we have a dedicated mechanism to request voice oh. this is a bit odd but it's because *some* clients don't implement this at all. no way to request and/or no way for mods to know a request has happened... this is IMHO rather a problem in general

  55. moparisthebest

    > somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?! because no clients have a good way to handle voice requests, very few can send them, all support MUC PMs

  56. moparisthebest

    client-wise not sure why you wouldn't just let anyone PM always, just display any error

  57. moparisthebest

    as a mod I really need like a dashboard to handle voice requests

  58. singpolyma

    >> somehow users learn that they have to PM mods in some prosody channels .. because they dont answer voice requests?! > > because no clients have a good way to handle voice requests, very few can send them, all support MUC PMs Gajim has a very good way. I think Cheogram Android has a passable way but it could be better

  59. singpolyma

    > as a mod I really need like a dashboard to handle voice requests that's basically what Gajim does

  60. moparisthebest

    cheogram android is the only client I know that at least displays them to the mod, but mixed in the chat and no way from there to voice them, have to remember the name , 2 clicks to member list, search the name, voice them (hope they are still online or you can't)

  61. moparisthebest

    gajim sounds very nice in that regard then, kudos :)

  62. lovetox

    > client-wise not sure why you wouldn't just let anyone PM always, just display any error cant, prosody does not mark message error as PM, hence gajim parses JID wrong, hence cannot join to PM JID

  63. moparisthebest

    >> client-wise not sure why you wouldn't just let anyone PM always, just display any error > cant, prosody does not mark message error as PM, hence gajim parses JID wrong, hence cannot join to PM JID lol oof

  64. lovetox

    its all connected :D

  65. lovetox

    so my next step is, try to parse that PM setting, and allow the user to only send PMs to whatever the setting says

  66. lovetox

    what the heck, i make a db lookup for the error, errors should not happen often so this should not impact performance

  67. moparisthebest

    sounds like famous last words :) but what other choice do you have

  68. singpolyma

    Errors are an update query by id for me