qingyun
08fc657755
fix: preserve whitespace in Plain.toDict() for @ mentions (#6244)
* fix: preserve whitespace in Plain.toDict() for @ mentions
- Remove .strip() from Plain.toDict() to match async to_dict() behavior
- Fixes #6237: QQ @mentions no longer lose trailing spaces
- This ensures '@user message' displays correctly instead of '@usermessage'
* refactor: remove redundant to_dict() from Plain class
- Let Plain inherit to_dict() from BaseMessageComponent
- BaseMessageComponent.to_dict() calls toDict() by default
- Reduces code duplication and prevents future divergence
- Addressed code review feedback from @gemini-code-assist and @sourcery-ai
* feat: add async to_dict method to Plain message component
* fix: add return type hint to Plain.toDict method
---------
Co-authored-by: ccsang <ccsang@users.noreply.github.com>
Co-authored-by: Soulter <905617992@qq.com>
2026-03-14 18:18:14 +08:00
..
2026-03-11 00:00:48 +08:00
2026-03-01 20:46:35 +09:00
2026-03-12 00:29:52 +08:00
2026-03-13 00:33:36 +08:00
2026-02-09 00:22:24 +08:00
2026-02-28 13:34:12 +09:00
2026-02-26 09:59:37 +08:00
2026-03-14 18:18:14 +08:00
2026-03-08 17:41:12 +09:00
2026-03-14 18:12:55 +08:00
2026-03-11 00:07:19 +08:00
2026-03-11 23:58:28 +09:00
2026-03-12 11:50:29 +09:00
2026-03-12 23:57:45 +08:00
2026-03-12 11:50:29 +09:00
2026-03-11 14:21:55 +09:00
2025-12-16 10:09:57 +08:00
2026-02-09 00:22:24 +08:00
2026-02-28 21:23:44 +08:00
2026-03-02 14:16:14 +08:00
2026-03-12 00:29:52 +08:00
2026-03-03 16:04:08 +08:00
2026-02-09 00:22:24 +08:00
2026-03-01 16:10:35 +09:00
2026-03-01 00:23:47 +08:00
2026-03-01 00:23:47 +08:00
2025-11-14 19:17:24 +08:00
2026-02-09 00:22:24 +08:00
2026-02-09 00:22:24 +08:00
2026-03-03 12:58:59 +08:00
2026-02-28 13:34:12 +09:00
2026-02-28 13:34:12 +09:00
2026-02-09 00:22:24 +08:00
2026-02-28 13:34:12 +09:00
2026-02-09 00:22:24 +08:00
2026-02-09 00:22:24 +08:00
2026-03-03 12:58:59 +08:00
2026-02-09 00:22:24 +08:00