fix(search): make closed DM search work correctly (#37)

This commit is contained in:
hampus-fluxer
2026-01-06 01:32:00 +01:00
committed by GitHub
parent ea0a2d8aae
commit cbe914cf6f
10 changed files with 127 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ export interface IUserChannelRepository {
listPrivateChannels(userId: UserID): Promise<Array<Channel>>;
deleteAllPrivateChannels(userId: UserID): Promise<void>;
listPrivateChannelSummaries(userId: UserID): Promise<Array<PrivateChannelSummary>>;
listHistoricalDmChannelIds(userId: UserID): Promise<Array<ChannelID>>;
recordHistoricalDmChannel(userId: UserID, channelId: ChannelID, isGroupDm: boolean): Promise<void>;
findExistingDmState(user1Id: UserID, user2Id: UserID): Promise<Channel | null>;
createDmChannelAndState(user1Id: UserID, user2Id: UserID, channelId: ChannelID): Promise<Channel>;