Only show "user has left the room" toast in channels

Fixes #1108
codeql
Lorenz Hübschle-Schneider 5 years ago
parent 0c21d5aca5
commit 65439a8ad2
  1. 2
      js/inputbar.js

@ -220,7 +220,7 @@ weechat.directive('inputBar', function() {
// Check whether the user is still online // Check whether the user is still online
var buffer = models.getBuffer(bufferline.buffer); var buffer = models.getBuffer(bufferline.buffer);
var is_online = buffer.queryNicklist(nick); var is_online = buffer.queryNicklist(nick);
if (!is_online) { if (buffer.type === 'channel' && !is_online) {
// show a toast that the user left // show a toast that the user left
var toast = document.createElement('div'); var toast = document.createElement('div');
toast.id = "toast"; toast.id = "toast";

Loading…
Cancel
Save