aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageLogger
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-19 22:03:33 -0300
committerGitHub <noreply@github.com>2023-03-19 22:03:33 -0300
commite36f4e5b0aed93f6b24a42eb738fc5f38579bf3c (patch)
treeab16d02f33e949fc34f9c0bc457fc8f861b931aa /src/plugins/messageLogger
parent4aff11421f1cccaf34a7c983fd8dc9a841042947 (diff)
downloadVencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.gz
Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.bz2
Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.zip
Fixes and make guild tooltip show users inside hidden voice channels (#613)
* Fix #509 * Fix #597 * Fix #594
Diffstat (limited to 'src/plugins/messageLogger')
-rw-r--r--src/plugins/messageLogger/index.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx
index ef05cf3..e13da35 100644
--- a/src/plugins/messageLogger/index.tsx
+++ b/src/plugins/messageLogger/index.tsx
@@ -174,6 +174,7 @@ export default definePlugin({
match: /(MESSAGE_UPDATE:function\((\w)\).+?)\.update\((\w)/,
replace: "$1" +
".update($3,m =>" +
+ " (($2.message.flags & 64) === 64 || (Vencord.Settings.plugins.MessageLogger.ignoreBots && $2.message.author?.bot) || (Vencord.Settings.plugins.MessageLogger.ignoreSelf && $2.message.author?.id === Vencord.Webpack.Common.UserStore.getCurrentUser().id)) ? m :" +
" $2.message.content !== m.editHistory?.[0]?.content && $2.message.content !== m.content ?" +
" m.set('editHistory',[...(m.editHistory || []), $self.makeEdit($2.message, m)]) :" +
" m" +