增加存储历史消息记录的功能 #6

Closed
opened 2 weeks ago by linran · 1 comments
linran commented 2 weeks ago
Collaborator
There is no content yet.
alimu was assigned by linran 2 weeks ago
linran added this to the [android-client][Improve] project 2 weeks ago
alimu commented 2 weeks ago
Owner

已完成 Android 客户端“历史消息本地存储”实现并推送到 main

提交:3974c06 (feat(android): persist chat history in local Room database)

修改点:

  1. 新增本地数据库层(Room)
    • ChatDatabase
    • ChatMessageEntity
    • ChatMessageDao
    • ChatHistoryRepository
  2. ChatSessionManager 接入历史消息持久化
    • 初始化时加载本地历史消息到 UI 状态
    • 发送/接收消息时写入本地数据库(系统提示消息不持久化)
    • “清空聊天记录”时同步清空数据库
  3. 构建配置
    • 增加 ksp 插件
    • 增加 room-runtime / room-ktx / room-compiler

验证:

  • ./gradlew :app:compileDebugKotlin 通过
  • ./gradlew :app:assembleDebug 通过

说明:历史消息现存储于应用本地数据库(Room),符合 issue 要求。

已完成 Android 客户端“历史消息本地存储”实现并推送到 `main`。 提交:`3974c06` (`feat(android): persist chat history in local Room database`) 修改点: 1. 新增本地数据库层(Room) - `ChatDatabase` - `ChatMessageEntity` - `ChatMessageDao` - `ChatHistoryRepository` 2. `ChatSessionManager` 接入历史消息持久化 - 初始化时加载本地历史消息到 UI 状态 - 发送/接收消息时写入本地数据库(系统提示消息不持久化) - “清空聊天记录”时同步清空数据库 3. 构建配置 - 增加 `ksp` 插件 - 增加 `room-runtime / room-ktx / room-compiler` 验证: - `./gradlew :app:compileDebugKotlin` 通过 - `./gradlew :app:assembleDebug` 通过 说明:历史消息现存储于应用本地数据库(Room),符合 issue 要求。
alimu closed this issue 2 weeks ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: alimu/OnlineMsgServer#6
Loading…
There is no content yet.