From 00096966788fe22d683af57751605c661f42240c Mon Sep 17 00:00:00 2001 From: VR <101288516+VillainsRule@users.noreply.github.com> Date: Thu, 7 Aug 2025 17:36:24 -0400 Subject: [PATCH] homeTyping: ignore the user when checking for typing (#330) * homeTyping: ignore the user when checking for typing * Update index.tsx --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/homeTyping/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/homeTyping/index.tsx b/src/equicordplugins/homeTyping/index.tsx index 8d9c64d64..06aef63d8 100644 --- a/src/equicordplugins/homeTyping/index.tsx +++ b/src/equicordplugins/homeTyping/index.tsx @@ -7,7 +7,7 @@ import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { findComponentByCodeLazy, findStoreLazy } from "@webpack"; -import { TypingStore, useStateFromStores } from "@webpack/common"; +import { TypingStore, UserStore, useStateFromStores } from "@webpack/common"; const ThreeDots = findComponentByCodeLazy(".dots,", "dotRadius:"); @@ -21,7 +21,11 @@ export default definePlugin({ return ; }, isTyping() { - return useStateFromStores([TypingStore], () => PrivateChannelSortStore.getPrivateChannelIds().some(id => Object.keys(TypingStore.getTypingUsers(id)).length > 0)); + return useStateFromStores([TypingStore], () => + PrivateChannelSortStore.getPrivateChannelIds().some(id => + Object.keys(TypingStore.getTypingUsers(id)).some(userId => userId !== UserStore.getCurrentUser().id) + ) + ); }, patches: [ {