Room leaving issue (MUC)

Hi, guys!

I was faced with the problem that the Candy.js does not close its tab while trying to leave the room.

Problem appears only in case when in this room was entered more than one clients from the same account (multi entering) and same room nickname.

You can easily check this by debug window of Spark App.

I have fixed and tested this problem. Diff in attachment.

Thanks.
fix_room_leaving_issue.diff.zip (915 Bytes)