Commit 1b1cf63

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-06-13 13:05:15
fix(history): fix chat title parsing
1 parent 2cb4070
Changed files (1)
src
history
src/history/utils.py
@@ -104,7 +104,7 @@ async def list_chat_ids(client: Client, message: Message):
     for table_name in table_names:
         if table_name.startswith("fts_"):
             continue
-        cid, ctitle = table_name.split("-")
+        cid, ctitle = table_name.split("-", maxsplit=1)
         msg += f"`/history #{cid}`: {ctitle}\n"
     await send2tg(client, message, texts=msg)