A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): make personal notes DM-like for search filtering (#57)
hampus-fluxer9dee7f1519ff
diff --git a/fluxer_app/src/components/channel/searchScopeOptions.ts b/fluxer_app/src/components/channel/searchScopeOptions.tsindex bd16ca002..af3089fcc 100644--- a/fluxer_app/src/components/channel/searchScopeOptions.ts+++ b/fluxer_app/src/components/channel/searchScopeOptions.ts@@ -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;};