1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-11-25 14:42:44 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
33f5ab7cce
Release v37.0 2022-06-18 14:00:15 +02:00
b9a5664740
Fix not seeing messages after a Discord update
Closes #189
2022-06-18 13:59:29 +02:00
2 changed files with 8 additions and 6 deletions

View File

@ -91,13 +91,15 @@ class DISCORD {
static getMessageElementProps(ele) {
const props = DOM.getReactProps(ele);
if (props.children && props.children.length >= 4) {
const childProps = props.children[3].props;
if (props.children && props.children.length) {
for (let i = 3; i < props.children.length; i++) {
const childProps = props.children[i].props;
if ("message" in childProps && "channel" in childProps) {
if (childProps && "message" in childProps && "channel" in childProps) {
return childProps;
}
}
}
return null;
}

View File

@ -7,6 +7,6 @@ using DHT.Utils;
namespace DHT.Utils {
static class Version {
public const string Tag = "36.2.0.0";
public const string Tag = "37.0.0.0";
}
}