fix(app): make personal notes DM-like for search filtering (#57)

This commit is contained in:
hampus-fluxer 2026-01-06 06:20:58 +01:00 committed by GitHub
parent 2c0894312b
commit 9dee7f1519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,9 @@ export const getScopeOptionsForChannel = (i18n: I18n, channel?: ChannelRecord |
return GUILD_SCOPE_OPTIONS;
}
const isDmChannel = channel.type === ChannelTypes.DM || channel.type === ChannelTypes.GROUP_DM;
const isDmChannel =
channel.type === ChannelTypes.DM ||
channel.type === ChannelTypes.GROUP_DM ||
channel.type === ChannelTypes.DM_PERSONAL_NOTES;
return isDmChannel ? DM_SCOPE_OPTIONS : GUILD_SCOPE_OPTIONS;
};