+
+ {$c->__('information.description')}
+
+
+ {autoescape="off"}
+ {$conference->info->description|addUrls|nl2br}
{/autoescape}
diff --git a/src/Moxl/API.php b/src/Moxl/API.php
index 18d63da06..81322b223 100644
--- a/src/Moxl/API.php
+++ b/src/Moxl/API.php
@@ -18,7 +18,7 @@ class API
if ($me->id && $me->session && $me->session->resource) {
$iq->setAttribute(
'from',
- $me->id.'/'.$me->session->resource
+ $me->id . '/' . $me->session->resource
);
}
diff --git a/src/Moxl/Stanza/Register.php b/src/Moxl/Stanza/Register.php
index 870bf7103..a94420542 100644
--- a/src/Moxl/Stanza/Register.php
+++ b/src/Moxl/Stanza/Register.php
@@ -34,13 +34,13 @@ class Register
\Moxl\API::request(\Moxl\API::iqWrapper($query, $to, 'set'));
}
- public static function remove()
+ public static function remove(?string $to)
{
$dom = new \DOMDocument('1.0', 'UTF-8');
$query = $dom->createElementNS('jabber:iq:register', 'query');
$query->appendChild($dom->createElement('remove'));
- \Moxl\API::request(\Moxl\API::iqWrapper($query, false, 'set'));
+ \Moxl\API::request(\Moxl\API::iqWrapper($query, $to ?? false, 'set'));
}
public static function changePassword($to, $username, $password)
diff --git a/src/Moxl/Xec/Action/Register/Remove.php b/src/Moxl/Xec/Action/Register/Remove.php
index 9e4d2c933..a8b905201 100644
--- a/src/Moxl/Xec/Action/Register/Remove.php
+++ b/src/Moxl/Xec/Action/Register/Remove.php
@@ -7,10 +7,12 @@ use Moxl\Stanza\Register;
class Remove extends Action
{
+ protected ?string $_to = null;
+
public function request()
{
$this->store();
- Register::remove();
+ Register::remove($this->_to);
}
public function handle(?\SimpleXMLElement $stanza = null, ?\SimpleXMLElement $parent = null)
@@ -20,7 +22,10 @@ class Remove extends Action
public function error(string $errorId, ?string $message = null)
{
- $this->pack($message);
- $this->deliver();
+ // We don't handle errors for now if we unregister from a specific thing
+ if ($this->_to == null) {
+ $this->pack($message);
+ $this->deliver();
+ }
}
}