From 7b3bd6ff963d9a4d5f328baa2572625c0a34296e Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Wed, 16 Jun 2021 16:34:11 +0100 Subject: [PATCH] [doc] Fix config example in MUC doc --- documentation/extensions/muc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/extensions/muc.md b/documentation/extensions/muc.md index a89f2b22f..40d7e2024 100644 --- a/documentation/extensions/muc.md +++ b/documentation/extensions/muc.md @@ -472,7 +472,7 @@ muc = manager.getMultiUserChat("myroom@conference.jabber.org"); muc.create("testbot"); // User1 (which is the room owner) configures the room as a moderated room Form form = muc.getConfigurationForm(); -Form answerForm = form.createAnswerForm(); +FillableForm answerForm = configForm.getFillableForm(); answerForm.setAnswer("muc#roomconfig_moderatedroom", "1"); muc.sendConfigurationForm(answerForm); @@ -612,7 +612,7 @@ muc = manager.getMultiUserChat("myroom@conference.jabber.org"); muc.create("testbot"); // User1 (which is the room owner) configures the room as a moderated room Form form = muc.getConfigurationForm(); -Form answerForm = form.createAnswerForm(); +FillableForm answerForm = configForm.getFillableForm(); answerForm.setAnswer("muc#roomconfig_moderatedroom", "1"); muc.sendConfigurationForm(answerForm);