mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 15:27:16 +03:00
Fix DMs being categorized as groups due to Discord layout changes
This commit is contained in:
parent
935013c0f4
commit
8153166840
@ -102,11 +102,13 @@ var DISCORD = (function(){
|
||||
return null;
|
||||
}
|
||||
|
||||
var icon = channel.querySelector("img[class*='avatar']");
|
||||
|
||||
obj = {
|
||||
"server": name,
|
||||
"channel": name,
|
||||
"id": link,
|
||||
"type": !!DOM.queryReactClass("status", channel) ? "DM" : "GROUP"
|
||||
"type": (icon && icon.src.includes("/channel-icons/")) ? "GROUP" : "DM"
|
||||
};
|
||||
}
|
||||
else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user