Merge pull request #175 from zoff-music/fix/chat-icons

Fixed chat icons
This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-17 14:44:45 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -116,7 +116,7 @@ var Chat = {
}
}
var icon_add = "";
if(inp.hasOwnProperty("icon") && !inp.icon && inp.icon != "") {
if(inp.hasOwnProperty("icon") && inp.icon !== false && inp.icon != "") {
icon_add = "<img class='chat-icon' src='" + inp.icon + "' alt='" + inp.from + "'>";
}
@@ -152,7 +152,7 @@ var Chat = {
}
var icon_add = "";
if(data.hasOwnProperty("icon") && !data.icon && data.icon != "") {
if(data.hasOwnProperty("icon") && data.icon !== false && data.icon != "") {
icon_add = "<img class='chat-icon' src='" + data.icon + "' alt='" + data.from + "'>";
}