@@ -400,7 +400,7 @@ type DatabaseData interface {
400400 GetChatMemberByIdV2 (ctx context.Context , chatId chat_v2.ChatId , memberId chat_v2.MemberId ) (* chat_v2.MemberRecord , error )
401401 GetChatMessageByIdV2 (ctx context.Context , chatId chat_v2.ChatId , messageId chat_v2.MessageId ) (* chat_v2.MessageRecord , error )
402402 GetAllChatMembersV2 (ctx context.Context , chatId chat_v2.ChatId ) ([]* chat_v2.MemberRecord , error )
403- GetPlatformUserChatMembershipV2 (ctx context.Context , platform chat_v2.Platform , platformId string , opts ... query.Option ) ([]* chat_v2.MemberRecord , error )
403+ GetPlatformUserChatMembershipV2 (ctx context.Context , idByPlatform map [ chat_v2.Platform ] string , opts ... query.Option ) ([]* chat_v2.MemberRecord , error )
404404 GetAllChatMessagesV2 (ctx context.Context , chatId chat_v2.ChatId , opts ... query.Option ) ([]* chat_v2.MessageRecord , error )
405405 GetChatUnreadCountV2 (ctx context.Context , chatId chat_v2.ChatId , memberId chat_v2.MemberId , readPointer chat_v2.MessageId ) (uint32 , error )
406406 PutChatV2 (ctx context.Context , record * chat_v2.ChatRecord ) error
@@ -1478,12 +1478,12 @@ func (dp *DatabaseProvider) GetChatMessageByIdV2(ctx context.Context, chatId cha
14781478func (dp * DatabaseProvider ) GetAllChatMembersV2 (ctx context.Context , chatId chat_v2.ChatId ) ([]* chat_v2.MemberRecord , error ) {
14791479 return dp .chatv2 .GetAllMembersByChatId (ctx , chatId )
14801480}
1481- func (dp * DatabaseProvider ) GetPlatformUserChatMembershipV2 (ctx context.Context , platform chat_v2.Platform , platformId string , opts ... query.Option ) ([]* chat_v2.MemberRecord , error ) {
1481+ func (dp * DatabaseProvider ) GetPlatformUserChatMembershipV2 (ctx context.Context , idByPlatform map [ chat_v2.Platform ] string , opts ... query.Option ) ([]* chat_v2.MemberRecord , error ) {
14821482 req , err := query .DefaultPaginationHandler (opts ... )
14831483 if err != nil {
14841484 return nil , err
14851485 }
1486- return dp .chatv2 .GetAllMembersByPlatformId (ctx , platform , platformId , req .Cursor , req .SortBy , req .Limit )
1486+ return dp .chatv2 .GetAllMembersByPlatformIds (ctx , idByPlatform , req .Cursor , req .SortBy , req .Limit )
14871487}
14881488func (dp * DatabaseProvider ) GetAllChatMessagesV2 (ctx context.Context , chatId chat_v2.ChatId , opts ... query.Option ) ([]* chat_v2.MessageRecord , error ) {
14891489 req , err := query .DefaultPaginationHandler (opts ... )
0 commit comments