Skip to content

Commit

Permalink
feat(v3): wasm is group member model
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Jun 21, 2023
1 parent b85b7ed commit 5a5b171
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wasm/indexdb/group_member_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

package indexdb

import "context"

import (
"context"
"open_im_sdk/pkg/db/model_struct"
"open_im_sdk/pkg/utils"
)
Expand Down Expand Up @@ -85,13 +84,13 @@ func (i *LocalGroupMember) GetAllGroupMemberUserIDList(ctx context.Context) ([]m
}
}

func (i *LocalGroupMember) GetGroupMemberCount(ctx context.Context, groupID string) (uint32, error) {
func (i *LocalGroupMember) GetGroupMemberCount(ctx context.Context, groupID string) (int32, error) {
count, err := Exec(groupID)
if err != nil {
return 0, err
}
if v, ok := count.(float64); ok {
return uint32(v), nil
return int32(v), nil
}
return 0, ErrType
}
Expand Down

0 comments on commit 5a5b171

Please sign in to comment.