#2043 MUC: muc#roomconfig_allowpm not advertised in disco#info

Reporter tizero
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Type-Defect
  • Status-New
  • Priority-Medium
  1. tizero on

    What steps will reproduce the problem? 1. Create a members-only MUC and set private messages to "No one" (via room config form or room:set_allow_pm("none")). 2. Check the owner config form (muc#owner): muc#roomconfig_allowpm is "none". 3. Send a disco#info query to the room jid and inspect the muc#roominfo form. What is the expected output? The muc#roominfo form should contain muc#roomconfig_allowpm with the current value, like other room options (e.g. #muc#roomconfig_changesubject), so client can see the setting without opening the owner config form. What do you see instead? The field is missing from the disco#info response. As far as I can see, restrict_pm.lib.lua has a muc-config-form hook but no muc-disco#info hook, unlike the libs for other options (persistent, change_subject etc.). Conversations reads this field from disco#info (MucOptions.allowPm() / allowPmRaw()). With a missing field it assumes pm are allowed, so the "Allow PM" checkbox is always checked, although the server rejects them. What version of the product are you using? On what operating system? Prosody 13.0.8, Debian 13 armhf

New comment

Not published. Used for spam prevention and optional update notifications.