Skip to content

Commit

Permalink
fix: add picture and video search. (openimsdk#419)
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon <[email protected]>
  • Loading branch information
FGadvancer committed Nov 24, 2023
1 parent a944498 commit 156bb5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/conversation_msg/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,14 @@ func (c *Conversation) filterMsg(temp *sdk_struct.MsgStruct, searchParam *sdk.Se
if !c.judgeMultipleSubString(searchParam.KeywordList, temp.QuoteElem.Text, searchParam.KeywordListMatchType) {
return c.filterMsg(temp.QuoteElem.QuoteMessage, searchParam)
}
case constant.Picture:
fallthrough
case constant.Video:
if len(searchParam.KeywordList) == 0 {
return false
} else {
return true
}
default:
return true
}
Expand Down

0 comments on commit 156bb5b

Please sign in to comment.