fix: set user.id in NodeDb getUser

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.
This commit is contained in:
James Rich 2024-10-25 18:54:01 -05:00 committed by Andre K
parent 61906839af
commit 6447485199
3 changed files with 4 additions and 3 deletions

View file

@ -335,7 +335,7 @@ class UIViewModel @Inject constructor(
Message(
uuid = it.uuid,
receivedTime = it.received_time,
user = MeshUser(getUser(it.data.from)), // FIXME convert to proto User
user = getUser(it.data.from),
text = it.data.text.orEmpty(),
time = it.data.time,
read = it.read,