Commit Graph

13 Commits

Author SHA1 Message Date
pp-bot
2eb2299709 fix: 修复多图消息无法显示的三个根因
根因 1 — MessageItem.toEntity() id=0 主键碰撞:
  WS 拉取的每条消息均用 id=0 insertOrReplace,批量消息相互覆盖,
  DB 中只留最后一条。改为 id=messageId(服务端唯一 ID)。

根因 2 — SendMessageUseCase 乐观写入 id=0 碰撞:
  批量图片发送时所有乐观行共享 id=0,逐条覆盖。
  改用负微秒时间戳作为临时唯一 id,HTTP 确认后用真实 messageId 替换。

根因 3 — watchByChatId 无 ORDER BY:
  DB 消息顺序不确定,宫格分组算法依赖时间升序失败。
  在 MessageRepositoryImpl.watchByChatId 及 _buildDisplayItems 中
  分别按 sendTime ASC + chatIdx ASC 排序。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 15:45:41 +09:00
Happi (哈比)
5eaff7ede3 同步dbretry接口 2026-03-10 12:49:49 +08:00
Happi (哈比)
1c996075e3 更新upsert 2026-03-10 12:41:02 +08:00
Happi (哈比)
8130bf63fa 所有数据库表,提供相应的provider、桥接等方法 2026-03-10 12:09:45 +08:00
Happi (哈比)
084b7bbd23 Merge branch 'dev' into happi/dev/database-update
# Conflicts:
#	apps/im_app/lib/features/login/presentation/login_view_model.dart
2026-03-09 20:17:03 +08:00
Happi (哈比)
8f77a14818 业务更新User所需(企业成员、聊天室群组成员) 2026-03-09 19:15:51 +08:00
Cody
3c1976b343 网络请求打通,ws 打通 2026-03-09 19:05:55 +08:00
Happi (哈比)
c278d1329e Merge branch 'dev' into happi/dev/database-update
# Conflicts:
#	apps/im_app/lib/data/models/user_dto.dart
#	apps/im_app/lib/data/remote/login_request.dart
#	apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart
#	apps/im_app/lib/features/chat/view/chat_db_test_page.dart
#	apps/im_app/lib/features/login/presentation/login_view_model.dart
2026-03-09 15:08:45 +08:00
Happi (哈比)
7b78da86e7 更新测试案例 2026-03-09 13:03:44 +08:00
Cody
03b89706a5 极简接口定义和响应定义,支持更多的解析器 2026-03-09 11:04:52 +08:00
Cody
c310ded32a Merge remote-tracking branch 'origin/dev' into cody/netwrok_SDK
# Conflicts:
#	apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart
#	apps/im_app/lib/features/login/presentation/login_view_model.dart

修复逻辑漏洞,性能优化
2026-03-08 20:47:28 +08:00
Happi (哈比)
a066e9d2dc 1)修改数据库命名,不和业务使用重合。
2)修改user 表,uid为unique, 聊天室文件夹name unique移除
2026-03-07 17:29:32 +08:00
Cody
bf9e099747 Initial project 2026-03-06 15:05:53 +08:00