Fix a crash in message counting if chat filter is in use

This commit is contained in:
KnugiHK
2026-01-24 18:02:30 +08:00
parent 1560c49644
commit 322b12a5a4

View File

@@ -142,6 +142,8 @@ def _get_message_count(cursor, filter_empty, filter_date, filter_chat, jid_map_e
FROM message
LEFT JOIN chat
ON chat._id = message.chat_row_id
INNER JOIN jid
ON jid._id = chat.jid_row_id
INNER JOIN jid jid_global
ON jid_global._id = chat.jid_row_id
LEFT JOIN jid jid_group