cburschka / cadence

A strophe.js-powered XMPP web client for chatrooms.
6 stars 2 forks source link

Cadence.connect aborts if it cannot autojoin #434

Closed cburschka closed 7 years ago

cburschka commented 7 years ago

If the autojoin fails (eg. because the room does not exist anymore), the UI will reflect a connection failure even though the connection itself succeeds.

Instead of returning the Cadence.execute promise from Cadence.execute('join'), we need to catch its failure and show the room list.