Fix group DMs without changed icon getting categorized as non-group DMs

This commit is contained in:
chylex 2020-05-19 07:38:04 +02:00
parent 849e0c798a
commit a48c3fef13

View File

@ -129,7 +129,7 @@ var DISCORD = (function(){
"server": name,
"channel": name,
"id": link,
"type": (icon && icon.src.includes("/channel-icons/")) ? "GROUP" : "DM"
"type": (icon && (icon.src.includes("/channel-icons/") || icon.src.includes("/assets/"))) ? "GROUP" : "DM"
};
}
else{