Commit 4053d9ca authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display warning when joining a locked group.

parent 5353d0a8
...@@ -2269,6 +2269,9 @@ async function gotJoined(kind, group, perms, status, data, message) { ...@@ -2269,6 +2269,9 @@ async function gotJoined(kind, group, perms, status, data, message) {
input.placeholder = 'Type /help for help'; input.placeholder = 'Type /help for help';
setTimeout(() => {input.placeholder = '';}, 8000); setTimeout(() => {input.placeholder = '';}, 8000);
if(status.locked)
displayWarning('This group is locked');
if(typeof RTCPeerConnection === 'undefined') if(typeof RTCPeerConnection === 'undefined')
displayWarning("This browser doesn't support WebRTC"); displayWarning("This browser doesn't support WebRTC");
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment