TypingIndicator: exclude ignored users (#4579)
This commit is contained in:
parent
dc5ca64afa
commit
f5671d73cd
1 changed files with 6 additions and 1 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue