Mark Telegram messages in Lumi

This commit is contained in:
waozi committed 2026-10-30 01:02:06 -03:00
1 parent 4ea83c536a
commit bd610f9d93
18 files changed
+81 -4

No files matched your search

+8 -1
View File
@@ -843,7 +843,14 @@ LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> Lum
.text = ifx row.developer then LumiViewLocaleHost("lumi_developer") else "Lumi",
.font = Scale(12)})
}
text_top := Scale(ifx row.user then 12 else 32)
from_telegram := row.user && row.kind == LUMI_CHAT_TEXT && row.payload == "telegram"
if from_telegram {
Text(frame.session, TextProps.{.key = cast(u64)(300408 + index * 4),
.bounds = Bounds(left + Scale(14), top + Scale(8),
bubble_width - Scale(28), Scale(16)),
.text = LumiViewLocaleHost("lumi_from_telegram"), .font = Scale(11)})
}
text_top := Scale(ifx row.user then (ifx from_telegram then 30 else 12) else 32)
if row.developer && row.quote.count > 0 {
FeedbackQuote(row, index, left, top + text_top, bubble_width)
text_top += Scale(LUMI_QUOTE_HEIGHT)