Show send failure feedback without message lookup

This commit is contained in:
liu weikai
2026-06-14 20:18:37 +08:00
parent 88447d4962
commit c5f73d0a53
2 changed files with 20 additions and 2 deletions
@@ -14,7 +14,18 @@ void ChatDeliveryFeedbackController::onChatSendResult(
bool success,
const chat::ChatMessage* message)
{
if (msg_id == 0 || message == nullptr || message->from != 0)
if (msg_id == 0)
{
return;
}
if (message == nullptr)
{
if (success)
{
return;
}
}
else if (message->from != 0)
{
return;
}