fix(chat): remove reply wording from send entry

This commit is contained in:
liu weikai
2026-06-15 22:35:44 +08:00
parent 3eba0309b0
commit 69f5cab7cf
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -7729,7 +7729,7 @@ const char* Runtime::nodeActionLabel(size_t index) const
case 0:
return "DETAIL";
case 1:
return can_reply ? "REPLY" : "VIEW ONLY";
return can_reply ? "SEND" : "VIEW ONLY";
case 2:
return "ADD CONTACT";
case 3:
@@ -299,8 +299,8 @@ ChatConversationScreen::ChatConversationScreen(lv_obj_t* parent, chat::Conversat
chat::ui::conversation::styles::apply_action_bar(action_bar_);
chat::ui::conversation::styles::apply_reply_btn(reply_btn_);
// Reply label text + style
::ui::i18n::set_label_text(w.reply_label, "Reply");
// Primary compose entry label.
::ui::i18n::set_label_text(w.reply_label, "Send");
chat::ui::conversation::styles::apply_reply_label(w.reply_label);
::ui::fonts::apply_localized_font(w.reply_label, lv_label_get_text(w.reply_label), ::ui::fonts::ui_chrome_font());
@@ -24,7 +24,7 @@
* | |
* | Action Bar (fixed height = 30, non-scrollable) |
* | +------------------------------------------------------------+ |
* | | [ Reply ] | |
* | | [ Send ] | |
* | +------------------------------------------------------------+ |
* +----------------------------------------------------------------+
*
@@ -34,7 +34,7 @@
* - MsgList(COL, scroll V, grow=1)
* - MsgRow*(repeat, ROW, full)
* - Bubble(COL, content) -> TextLabel(WRAP)
* - ActionBar(ROW, fixed=30) -> ReplyBtn -> ReplyLabel
* - ActionBar(ROW, fixed=30) -> ComposeBtn -> ComposeLabel
*
* Notes:
* - Structure/layout only: create objects, set size/flex/align/flags.
@@ -88,7 +88,7 @@ ConversationWidgets create_conversation_base(lv_obj_t* parent)
LV_FLEX_ALIGN_CENTER);
make_non_scrollable(w.action_bar);
// Reply button
// Primary compose button
w.reply_btn = lv_btn_create(w.action_bar);
lv_obj_set_size(w.reply_btn,
profile.dense ? 92 : 120,
@@ -164,7 +164,8 @@ bool MeshCoreRadioAdapter::sendTextWithId(::chat::ChannelId channel, const std::
if (!want_ack)
{
sys::EventBus::publish(new sys::ChatSendResultEvent(msg_id, true), 0);
Serial.printf("[MESHCORE] TX text id=%08lX no delivery ACK for broadcast\n",
static_cast<unsigned long>(msg_id));
}
return ::chat::MeshSendResult::success(msg_id);
}