fix(search): make closed DM search work correctly (#37)
This commit is contained in:
@@ -54,6 +54,13 @@ export const getDmChannelIdsForScope = async ({
|
||||
channelIdStrings.add(summary.channelId.toString());
|
||||
}
|
||||
|
||||
if (scope === 'all_dms') {
|
||||
const historicalIds = await userRepository.listHistoricalDmChannelIds(userId);
|
||||
for (const channelId of historicalIds) {
|
||||
channelIdStrings.add(channelId.toString());
|
||||
}
|
||||
}
|
||||
|
||||
if (includeChannelId) {
|
||||
channelIdStrings.add(includeChannelId.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user