ui update/cleanup: Message padding updates (#2289)

This commit is contained in:
Joshua Soberg 2025-06-28 18:23:33 -04:00 committed by GitHub
parent 72b1ebca56
commit 4500ba0c0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 125 additions and 79 deletions

View file

@ -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,