tabbed navigation + db request fix
This commit is contained in:
@@ -42,7 +42,9 @@ socket.on('chat message', (msg, room, tag_received, iv, nonce) => {
|
||||
console.log(tag);
|
||||
console.log(tag_received);
|
||||
messages.appendChild(item);
|
||||
window.scrollTo(0, document.body.scrollHeight);
|
||||
if (document.getElementById(`room-${room}`).style.display === 'block') {
|
||||
window.scrollTo(0, document.body.scrollHeight);
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('key exchange', (user_pubkey, pubkey, part) => {
|
||||
|
||||
Reference in New Issue
Block a user