Skip to content

refactor(ui): Simplify composable message handling in dialog#4573

Merged
jamesarich merged 1 commit into
mainfrom
fix/client-notif
Feb 17, 2026
Merged

refactor(ui): Simplify composable message handling in dialog#4573
jamesarich merged 1 commit into
mainfrom
fix/client-notif

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Allows Client Notification (and other) text only messages to be rendered correctly

fixes #4571

This commit refactors the `MeshtasticDialog` invocation within `Main.kt`. It simplifies the logic for handling composable messages by using a `let` scope function, making the code more concise and idiomatic.

The explicit `if/else` block for setting the `text` parameter has been replaced with a single line that conditionally provides the composable content.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the bugfix PR tag label Feb 17, 2026
@jamesarich jamesarich enabled auto-merge February 17, 2026 00:26
@codecov

codecov Bot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 14.79%. Comparing base (8c5bc65) to head (25648ea).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4573   +/-   ##
=======================================
  Coverage   14.79%   14.79%           
=======================================
  Files         427      427           
  Lines       14841    14841           
  Branches     2455     2455           
=======================================
  Hits         2195     2195           
  Misses      12329    12329           
  Partials      317      317           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Feb 17, 2026
Merged via the queue into main with commit d374e76 Feb 17, 2026
9 checks passed
@jamesarich jamesarich deleted the fix/client-notif branch February 17, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Client notification dialog is missing its text

1 participant