mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
core: fix search in chat (#5677)
This commit is contained in:
parent
1fcb352db4
commit
b482d4d812
1 changed files with 1 additions and 1 deletions
|
@ -1260,7 +1260,7 @@ getGroupChatItemIDs db User {userId} GroupInfo {groupId} contentFilter range cou
|
||||||
(orParams ts itemId)
|
(orParams ts itemId)
|
||||||
" ORDER BY item_ts DESC, chat_item_id DESC "
|
" ORDER BY item_ts DESC, chat_item_id DESC "
|
||||||
where
|
where
|
||||||
orCond c1 c2 = " (" <> c <> " AND " <> c1 <> ") OR (" <> c <> " AND " <> c2 <> ") "
|
orCond c1 c2 = " ((" <> c <> " AND " <> c1 <> ") OR (" <> c <> " AND " <> c2 <> ")) "
|
||||||
orParams ts itemId = (p :. (Only ts) :. p :. (ts, itemId))
|
orParams ts itemId = (p :. (Only ts) :. p :. (ts, itemId))
|
||||||
rangeQuery :: ToRow p => Query -> p -> Query -> IO [ChatItemId]
|
rangeQuery :: ToRow p => Query -> p -> Query -> IO [ChatItemId]
|
||||||
rangeQuery c p ob
|
rangeQuery c p ob
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue