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

Fixes #1108
This commit is contained in:
Lorenz Hübschle-Schneider 2020-03-28 16:15:37 +01:00
parent 0c21d5aca5
commit 65439a8ad2

View File

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