|
@@ -719,9 +719,6 @@ $(document).bind('entered.muc', function (event, jid, info, pres) {
|
719
|
719
|
focus.addNewParticipant(jid);
|
720
|
720
|
}
|
721
|
721
|
}
|
722
|
|
- else if (sharedKey) {
|
723
|
|
- Toolbar.updateLockButton();
|
724
|
|
- }
|
725
|
722
|
});
|
726
|
723
|
|
727
|
724
|
$(document).bind('left.muc', function (event, jid) {
|
|
@@ -860,6 +857,9 @@ $(document).bind('presence.status.muc', function (event, jid, info, pres) {
|
860
|
857
|
$(document).bind('passwordrequired.muc', function (event, jid) {
|
861
|
858
|
console.log('on password required', jid);
|
862
|
859
|
|
|
860
|
+ // password is required
|
|
861
|
+ Toolbar.lockLockButton();
|
|
862
|
+
|
863
|
863
|
messageHandler.openTwoButtonDialog(null,
|
864
|
864
|
'<h2>Password required</h2>' +
|
865
|
865
|
'<input id="lockKey" type="text" placeholder="password" autofocus>',
|