refactor(storage): partition protocol persistence

This commit is contained in:
liu weikai committed 2026-07-20 22:28:48 +08:00
1 parent ac457dce9e
commit eced19abfc
55 files changed
+9368 -3950

No files matched your search

@@ -14,7 +14,7 @@
#include <string>
#ifndef CHAT_UI_SEND_TRACE_ENABLE
#define CHAT_UI_SEND_TRACE_ENABLE 1
#define CHAT_UI_SEND_TRACE_ENABLE 0
#endif
#if CHAT_UI_SEND_TRACE_ENABLE
@@ -7,7 +7,7 @@
#include <string>
#ifndef CHAT_UI_SEND_TRACE_ENABLE
#define CHAT_UI_SEND_TRACE_ENABLE 1
#define CHAT_UI_SEND_TRACE_ENABLE 0
#endif
#if CHAT_UI_SEND_TRACE_ENABLE
@@ -29,7 +29,7 @@
#include <ctime>
#ifndef CHAT_CONVERSATION_LOG_ENABLE
#define CHAT_CONVERSATION_LOG_ENABLE 1
#define CHAT_CONVERSATION_LOG_ENABLE 0
#endif
#if CHAT_CONVERSATION_LOG_ENABLE
@@ -35,7 +35,7 @@
#include <ctime>
#ifndef CHAT_UI_LOG_ENABLE
#define CHAT_UI_LOG_ENABLE 1
#define CHAT_UI_LOG_ENABLE 0
#endif
#if CHAT_UI_LOG_ENABLE
@@ -883,7 +883,6 @@ void UiController::onRuntimeMessageArrived(chat::MessageId msg_id)
updateConversationMetaForMessage(*latest, !is_current_conversation);
if (is_current_conversation)
{
(void)updateConversationViewForIncoming(*latest);
reloadConversationView();
(void)chat_model_.markRead(
chat_presentation_adapters::toUiConversationId(current_conv_));
@@ -1742,22 +1741,6 @@ void UiController::updateConversationMetaForMessage(const chat::ChatMessage& msg
normalizeConversationNames(cached_conversations_);
}
bool UiController::updateConversationViewForIncoming(const chat::ChatMessage& msg)
{
if (!conversation_)
{
return false;
}
if (!(current_conv_ == chat::conversationIdForMessage(msg)))
{
return false;
}
reloadConversationView();
return true;
}
void UiController::reloadConversationView()
{
if (!conversation_ || team_conv_active_)