Skip to content

Commit d103355

Browse files
committed
Fixes #3386 Registration form is not fetched
1 parent 4a64395 commit d103355

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- #3307: Fix inconsistency between browsers on textarea outlines
3232
- #3337: Correctly display multiline nested quotes
3333
- #3362: Don't create empty nick element in bookmarks
34+
- #3386: Registration form is not fetched
3435
- #3476: better UI for form "fixed" fields
3536
- #3478: MUC participant status indicator misplaced
3637
- #3529: Unbookmarked channels no longer change their name when clicked with an unread indicator (or text icon)

src/plugins/register/panel.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ class RegisterPanel extends CustomElement {
9494
const conn = api.connection.get();
9595
conn.connected = true;
9696

97-
const body = conn._proto._reqToData(req);
97+
const body = /** @type {Element} */ (
98+
'_reqToData' in conn._proto ? conn._proto._reqToData(/** @type {Request} */ (req)) : req
99+
);
98100
if (!body) { return; }
101+
99102
if (conn._proto._connect_cb(body) === Strophe.Status.CONNFAIL) {
100103
this.status = CHOOSE_PROVIDER;
101104
this.setErrorMessage(__("Sorry, we're unable to connect to your chosen provider."));

0 commit comments

Comments
 (0)