TypingIndicator: exclude ignored users (#4579)

This commit is contained in:
thororen 2026-09-03 21:50:25 -04:00 • committed by GitHub
parent dc5ca64afa
commit f5671d73cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ function TypingIndicator({ channelId, guildId }: { channelId: string; guildId: s
const myId = UserStore.getCurrentUser()?.id;
const typingUsersArray = Object.keys(typingUsers).filter(id =>
id !== myId && !(RelationshipStore.isBlocked(id) && !settings.store.includeBlockedUsers)
id !== myId && !(RelationshipStore.isBlocked(id) && !settings.store.includeBlockedUsers) && !(RelationshipStore.isIgnored(id) && !settings.store.includeIgnoredUsers)
);
const [a, b, c] = typingUsersArray;
let tooltipText: string;
@ -143,6 +143,11 @@ const settings = definePluginSettings({
description: "Whether to show the typing indicator for muted channels.",
default: false
},
includeIgnoredUsers: {
type: OptionType.BOOLEAN,
description: "Whether to show the typing indicator for ignored users.",
default: false
},
includeBlockedUsers: {
type: OptionType.BOOLEAN,
description: "Whether to show the typing indicator for blocked users.",