Fix the returning string for empty filter list

This commit is contained in:
KnugiHK
2026-01-24 00:03:08 +08:00
parent bf230db595
commit 95a52231be

View File

@@ -400,7 +400,7 @@ def get_chat_condition(filter: Optional[List[str]], include: bool, columns: List
Raises:
ValueError: If the column count is invalid or an unsupported platform is provided.
"""
if filter is not None:
if filter is not None and len(filter) > 0:
conditions = []
if len(columns) < 2 and jid is not None:
raise ValueError(