Skip to content

Commit

Permalink
MLv2 v1.8.26 fix not being able to get memoized Message
Browse files Browse the repository at this point in the history
  • Loading branch information
1Lighty authored Nov 21, 2023
1 parent 3f8c9d7 commit 82f3d44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @name MessageLoggerV2
* @version 1.8.26
* @version 1.8.27
* @invite NYvWdN5
* @donate https://paypal.me/lighty13
* @website https://1lighty.github.io/BetterDiscordStuff/?plugin=MessageLoggerV2
Expand Down Expand Up @@ -44,7 +44,7 @@ module.exports = class MessageLoggerV2 {
return 'MessageLoggerV2';
}
getVersion() {
return '1.8.26';
return '1.8.27';
}
getAuthor() {
return 'Lighty';
Expand Down Expand Up @@ -3158,7 +3158,7 @@ module.exports = class MessageLoggerV2 {
res(document.querySelector(selector));
}, selector, null, true)
}));
return ZeresPluginLibrary.Utilities.findInTree(ZeresPluginLibrary.ReactTools.getReactInstance(el), e => ((typeof e?.memoizedProps?.isHighlight) === 'boolean'), { walkable: ['return'] })?.elementType
return ZeresPluginLibrary.Utilities.findInTree(ZeresPluginLibrary.ReactTools.getReactInstance(el), e => ((typeof e?.memoizedProps?.renderContentOnly) === 'boolean'), { walkable: ['return'] })?.elementType
})()
if (!MessageContent || !MemoMessage) return XenoLib.Notifications.error('Failed to patch message components, edit history and deleted tint will not show!', { timeout: 0 });
this.unpatches.push(
Expand Down

0 comments on commit 82f3d44

Please sign in to comment.