mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-03-14 09:45:42 +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)
|
||||
" ORDER BY item_ts DESC, chat_item_id DESC "
|
||||
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))
|
||||
rangeQuery :: ToRow p => Query -> p -> Query -> IO [ChatItemId]
|
||||
rangeQuery c p ob
|
||||
|
|
Loading…
Add table
Reference in a new issue