mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ui update/cleanup: Message padding updates (#2289)
This commit is contained in:
parent
72b1ebca56
commit
4500ba0c0a
6 changed files with 125 additions and 79 deletions
|
|
@ -35,10 +35,12 @@ data class PacketEntity(
|
|||
val reactions: List<ReactionEntity> = emptyList(),
|
||||
) {
|
||||
suspend fun toMessage(getNode: suspend (userId: String?) -> Node) = with(packet) {
|
||||
val node = getNode(data.from)
|
||||
Message(
|
||||
uuid = uuid,
|
||||
receivedTime = received_time,
|
||||
node = getNode(data.from),
|
||||
node = node,
|
||||
fromLocal = node.user.id == DataPacket.ID_LOCAL,
|
||||
text = data.text.orEmpty(),
|
||||
time = getShortDateTime(data.time),
|
||||
snr = snr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue