mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 00:44:27 +00:00
core: fix search in chat (#5677)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user