Skip to content

Commit a4c977c

Browse files
committed
Bugfix. See below:
Don't deregister _roomRosterHandler when we receive a presence stanza containing an error. For example, the error might be an auth error. If the user then joins again with the correct password, the same room is used and while the other handlers (for presence and message) were being remembered, the roster handler wasn't (because of this bug).
1 parent 065282e commit a4c977c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

muc/strophe.muc.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ class XmppRoom
722722
nick = data.nick
723723
newnick = data.newnick or null
724724
switch data.type
725-
when 'error' then return
725+
when 'error' then return true
726726
when 'unavailable'
727727
if newnick
728728
data.nick = newnick

muc/strophe.muc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)