mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Implement message reply functionality (#2147)
This commit is contained in:
parent
7497540f80
commit
357efa9028
9 changed files with 238 additions and 71 deletions
|
|
@ -677,7 +677,8 @@ class MeshService : Service(), Logging {
|
|||
wantAck = packet.wantAck,
|
||||
hopStart = packet.hopStart,
|
||||
snr = packet.rxSnr,
|
||||
rssi = packet.rxRssi
|
||||
rssi = packet.rxRssi,
|
||||
replyId = data.replyId,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -733,7 +734,8 @@ class MeshService : Service(), Logging {
|
|||
data = dataPacket,
|
||||
snr = dataPacket.snr,
|
||||
rssi = dataPacket.rssi,
|
||||
hopsAway = dataPacket.hopsAway
|
||||
hopsAway = dataPacket.hopsAway,
|
||||
replyId = dataPacket.replyId ?: 0
|
||||
)
|
||||
serviceScope.handledLaunch {
|
||||
packetRepository.get().apply {
|
||||
|
|
@ -772,7 +774,10 @@ class MeshService : Service(), Logging {
|
|||
|
||||
when (data.portnumValue) {
|
||||
Portnums.PortNum.TEXT_MESSAGE_APP_VALUE -> {
|
||||
if (data.emoji != 0) {
|
||||
if (data.replyId != 0 && data.emoji == 0) {
|
||||
debug("Received REPLY from $fromId")
|
||||
rememberDataPacket(dataPacket)
|
||||
} else if (data.replyId != 0 && data.emoji != 0) {
|
||||
debug("Received EMOJI from $fromId")
|
||||
rememberReaction(packet)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue