Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Display for self-sent messages #1350

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

jamesarich
Copy link
Contributor

@jamesarich jamesarich commented Oct 25, 2024

fixes #1349

This commit updates the getUser function in NodeDB to set the ID of the user when creating a new User object, ensuring that the user ID is always populated.

Additionally, it refactors the Message class to use the proto User object instead of the MeshUser class. This change simplifies the code and improves consistency by utilizing the proto definition for user information.

@andrekir
Copy link
Member

Thanks for the effort but the issue here is just a missing setId() in nodeDB.geUser(). If you’re up for it, please update the PR. If not, no worries, I should get to it tomorrow.

This commit updates the `getUser` function in `NodeDB` to set the ID of the user when creating a new `User` object, ensuring that the user ID is always populated.

Additionally, it refactors the `Message` class to use the proto `User` object instead of the `MeshUser` class. This change simplifies the code and improves consistency by utilizing the proto definition for user information.
@jamesarich
Copy link
Contributor Author

@andrekir - thank you, i missed that.

@andrekir andrekir merged commit 6447485 into meshtastic:master Oct 26, 2024
5 checks passed
@jamesarich jamesarich deleted the fix_local_sent_messages branch November 21, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: local name wrong and no cloud icon on sent messages
2 participants