Skip to content

Commit ace8164

Browse files
author
Erika Perugachi
authored
Merge pull request #1187 from JulianAdams4/quick-fix
Fix main threads query. Fix uniqueId
2 parents 033f603 + 38d3d4b commit ace8164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electron_app/src/DBManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ const getEmailsGroupByThreadByParams = async (params = {}) => {
711711
${customRejectedLabels}
712712
ORDER BY ${Table.EMAIL}.date DESC
713713
)
714-
GROUP BY threadId
714+
GROUP BY uniqueId
715715
${labelId > 0 ? `HAVING myAllLabels LIKE "%L${labelId}L%"` : ''}
716716
ORDER BY date DESC
717717
LIMIT ${limit || 22}`;
@@ -893,7 +893,7 @@ const getEmailsGroupByThreadByParamsToSearch = (params = {}) => {
893893
ORDER BY ${Table.EMAIL}.date DESC
894894
LIMIT 100
895895
)
896-
GROUP BY threadId
896+
GROUP BY uniqueId
897897
${labelId > 0 ? `HAVING myAllLabels LIKE "%L${labelId}L%"` : ''}
898898
ORDER BY date DESC
899899
LIMIT ${limit || 22}`;

0 commit comments

Comments
 (0)