mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Remove auto-retry confirmation for messages (#4513)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
8167fdaa89
commit
bd8ff75787
20 changed files with 1020 additions and 636 deletions
|
|
@ -91,7 +91,7 @@ import org.meshtastic.core.database.entity.TracerouteNodePositionEntity
|
|||
AutoMigration(from = 30, to = 31),
|
||||
AutoMigration(from = 31, to = 32),
|
||||
AutoMigration(from = 32, to = 33),
|
||||
AutoMigration(from = 33, to = 34),
|
||||
AutoMigration(from = 33, to = 34, spec = AutoMigration33to34::class),
|
||||
],
|
||||
version = 34,
|
||||
exportSchema = true,
|
||||
|
|
@ -126,3 +126,7 @@ class AutoMigration12to13 : AutoMigrationSpec
|
|||
|
||||
@DeleteColumn.Entries(DeleteColumn(tableName = "packet", columnName = "reply_id"))
|
||||
class AutoMigration29to30 : AutoMigrationSpec
|
||||
|
||||
@DeleteColumn(tableName = "packet", columnName = "retry_count")
|
||||
@DeleteColumn(tableName = "reactions", columnName = "retry_count")
|
||||
class AutoMigration33to34 : AutoMigrationSpec
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ data class PacketEntity(
|
|||
viaMqtt = data.viaMqtt,
|
||||
relayNode = data.relayNode,
|
||||
relays = data.relays,
|
||||
retryCount = data.retryCount,
|
||||
filtered = filtered,
|
||||
)
|
||||
}
|
||||
|
|
@ -140,7 +139,6 @@ data class Reaction(
|
|||
val packetId: Int = 0,
|
||||
val status: MessageStatus = MessageStatus.UNKNOWN,
|
||||
val routingError: Int = 0,
|
||||
val retryCount: Int = 0,
|
||||
val relays: Int = 0,
|
||||
val relayNode: Int? = null,
|
||||
val to: String? = null,
|
||||
|
|
@ -166,7 +164,6 @@ data class ReactionEntity(
|
|||
@ColumnInfo(name = "packet_id", defaultValue = "0") val packetId: Int = 0,
|
||||
@ColumnInfo(name = "status", defaultValue = "0") val status: MessageStatus = MessageStatus.UNKNOWN,
|
||||
@ColumnInfo(name = "routing_error", defaultValue = "0") val routingError: Int = 0,
|
||||
@ColumnInfo(name = "retry_count", defaultValue = "0") val retryCount: Int = 0,
|
||||
@ColumnInfo(name = "relays", defaultValue = "0") val relays: Int = 0,
|
||||
@ColumnInfo(name = "relay_node") val relayNode: Int? = null,
|
||||
@ColumnInfo(name = "to") val to: String? = null,
|
||||
|
|
@ -187,7 +184,6 @@ private suspend fun ReactionEntity.toReaction(getNode: suspend (userId: String?)
|
|||
packetId = packetId,
|
||||
status = status,
|
||||
routingError = routingError,
|
||||
retryCount = retryCount,
|
||||
relays = relays,
|
||||
relayNode = relayNode,
|
||||
to = to,
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ data class Message(
|
|||
val viaMqtt: Boolean = false,
|
||||
val relayNode: Int? = null,
|
||||
val relays: Int = 0,
|
||||
val retryCount: Int = 0,
|
||||
val filtered: Boolean = false,
|
||||
) {
|
||||
fun getStatusStringRes(): Pair<StringResource, StringResource> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue