Compare commits

...

6 commits

Author SHA1 Message Date
Liam Cottle
a6c56ae39c
Merge pull request #191 from mmoyles87/update-micron-parser-1.1.0
[Update] micron-parser-js 1.1.0
2026-11-12 10:31:36 +13:00
Matt Moyles
993786673b
Update micron-parser to 1.1.0
micron-parser 1.0.2 adds 2px horizontal padding to every span with a
background colour, so rows of block or ANSI art with different numbers of
colour runs render at different widths. The padding was removed upstream
(RFnexus/micron-parser-js#19). 1.1.0 also supports the #!fg/#!bg page
default colour headers.
2026-11-11 13:44:48 -05:00
Liam Cottle
a9f925975e
Merge pull request #177 from Cryptoteep/fix/issue-173
Fix bug where toggling transport fails if reticulum config section is missing
2026-10-07 12:14:44 +13:00
Andreev Kirill Andreevich
3190f3e5a6 Fix bug where toggling transport fails if reticulum config section is missing
Fixes #173

Signed-off-by: Andreev Kirill Andreevich <andreev.gh2017@yandex.ru>
2026-10-06 21:52:10 +03:00
Liam Cottle
df5aea94ea
Merge pull request #169 from jaschadub/meshchat-fix-rejected-message-loop
Fix rejected messages reappearing after deleting conversation history
2026-08-15 12:45:27 +12:00
Jascha
7e88277abd Stop message progress loop when message is rejected
The progress loop in handle_lxmf_message_progress upserts the message
to the database every second until it reaches a terminal state, but
REJECTED was missing from the stop conditions. A rejected message kept
re-inserting itself forever, so deleting the conversation history had
no effect and the message reappeared on page reload.
2026-08-14 14:22:12 -07:00
3 changed files with 16 additions and 6 deletions

View file

@ -980,6 +980,10 @@ class ReticulumMeshChat:
@routes.post("/api/v1/reticulum/enable-transport") @routes.post("/api/v1/reticulum/enable-transport")
async def index(request): async def index(request):
# ensure reticulum section exists
if "reticulum" not in self.reticulum.config:
self.reticulum.config["reticulum"] = {}
# enable transport mode # enable transport mode
self.reticulum.config["reticulum"]["enable_transport"] = True self.reticulum.config["reticulum"]["enable_transport"] = True
self.reticulum.config.write() self.reticulum.config.write()
@ -992,6 +996,10 @@ class ReticulumMeshChat:
@routes.post("/api/v1/reticulum/disable-transport") @routes.post("/api/v1/reticulum/disable-transport")
async def index(request): async def index(request):
# ensure reticulum section exists
if "reticulum" not in self.reticulum.config:
self.reticulum.config["reticulum"] = {}
# disable transport mode # disable transport mode
self.reticulum.config["reticulum"]["enable_transport"] = False self.reticulum.config["reticulum"]["enable_transport"] = False
self.reticulum.config.write() self.reticulum.config.write()
@ -3031,10 +3039,11 @@ class ReticulumMeshChat:
has_delivered = lxmf_message.state == LXMF.LXMessage.DELIVERED has_delivered = lxmf_message.state == LXMF.LXMessage.DELIVERED
has_propagated = lxmf_message.state == LXMF.LXMessage.SENT and lxmf_message.method == LXMF.LXMessage.PROPAGATED has_propagated = lxmf_message.state == LXMF.LXMessage.SENT and lxmf_message.method == LXMF.LXMessage.PROPAGATED
has_failed = lxmf_message.state == LXMF.LXMessage.FAILED has_failed = lxmf_message.state == LXMF.LXMessage.FAILED
has_rejected = lxmf_message.state == LXMF.LXMessage.REJECTED
is_cancelled = lxmf_message.state == LXMF.LXMessage.CANCELLED is_cancelled = lxmf_message.state == LXMF.LXMessage.CANCELLED
# check if we should stop updating # check if we should stop updating
if has_delivered or has_propagated or has_failed or is_cancelled: if has_delivered or has_propagated or has_failed or has_rejected or is_cancelled:
should_update_message = False should_update_message = False
# handle an announce received from reticulum, for an audio call address # handle an announce received from reticulum, for an audio call address

9
package-lock.json generated
View file

@ -17,7 +17,7 @@
"click-outside-vue3": "^4.0.1", "click-outside-vue3": "^4.0.1",
"compressorjs": "^1.2.1", "compressorjs": "^1.2.1",
"electron-prompt": "^1.7.0", "electron-prompt": "^1.7.0",
"micron-parser": "^1.0.2", "micron-parser": "^1.1.0",
"mitt": "^3.0.1", "mitt": "^3.0.1",
"moment": "^2.30.1", "moment": "^2.30.1",
"postcss": "^8.4.49", "postcss": "^8.4.49",
@ -4184,9 +4184,10 @@
} }
}, },
"node_modules/micron-parser": { "node_modules/micron-parser": {
"version": "1.0.2", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/micron-parser/-/micron-parser-1.0.2.tgz", "resolved": "https://registry.npmjs.org/micron-parser/-/micron-parser-1.1.0.tgz",
"integrity": "sha512-lYrEolylOUXeSISYrPRW/ZZAH1dpZRyTJ0VzQIA4cWJy0yNCXUUs+ujuAwV2OYlAPH8tCE1Z22+zg04Ilp/JWg==", "integrity": "sha512-v1CXQkmuxRDz6N0EWcUhPq+FzZ4RBXPO7zEuhrRIBsnOZBjXSZosSRYQyU53DNAPL5SR+xRRFDCGhvR0cexf8A==",
"license": "MIT",
"dependencies": { "dependencies": {
"dompurify": "*" "dompurify": "*"
} }

View file

@ -102,7 +102,7 @@
"click-outside-vue3": "^4.0.1", "click-outside-vue3": "^4.0.1",
"compressorjs": "^1.2.1", "compressorjs": "^1.2.1",
"electron-prompt": "^1.7.0", "electron-prompt": "^1.7.0",
"micron-parser": "^1.0.2", "micron-parser": "^1.1.0",
"mitt": "^3.0.1", "mitt": "^3.0.1",
"moment": "^2.30.1", "moment": "^2.30.1",
"postcss": "^8.4.49", "postcss": "^8.4.49",