Skip to content

Commit

Permalink
fix: search messages add localEx field
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
  • Loading branch information
FGadvancer committed Jul 28, 2023
1 parent 995d610 commit 8012fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/conversation_msg/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ func (c *Conversation) searchLocalMessages(ctx context.Context, searchParam *sdk
_ = utils.JsonStringToStruct(v.AttachedInfo, &attachedInfo)
temp.AttachedInfoElem = &attachedInfo
temp.Ex = v.Ex
temp.LocalEx = v.Ex
err := c.msgHandleByContentType(&temp)
if err != nil {
// log.Error("", "Parsing data error:", err.Error(), temp)
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/db_interface/databse.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type GroupDatabase interface {
DeleteGroup(ctx context.Context, groupID string) error
UpdateGroup(ctx context.Context, groupInfo *model_struct.LocalGroup) error
GetJoinedGroupListDB(ctx context.Context) ([]*model_struct.LocalGroup, error)
GetGroups(ctx context.Context, userIDs []string) ([]*model_struct.LocalGroup, error)
GetGroups(ctx context.Context, groupIDs []string) ([]*model_struct.LocalGroup, error)
GetGroupInfoByGroupID(ctx context.Context, groupID string) (*model_struct.LocalGroup, error)
GetAllGroupInfoByGroupIDOrGroupName(ctx context.Context, keyword string, isSearchGroupID bool, isSearchGroupName bool) ([]*model_struct.LocalGroup, error)
AddMemberCount(ctx context.Context, groupID string) error
Expand Down

0 comments on commit 8012fd4

Please sign in to comment.