mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-26 18:06:21 -05:00
Compare commits
No commits in common. "master" and "v2.4.0" have entirely different histories.
3 changed files with 6 additions and 16 deletions
11
meshchat.py
11
meshchat.py
|
|
@ -980,10 +980,6 @@ 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()
|
||||||
|
|
@ -996,10 +992,6 @@ 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()
|
||||||
|
|
@ -3039,11 +3031,10 @@ 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 has_rejected or is_cancelled:
|
if has_delivered or has_propagated or has_failed 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
9
package-lock.json
generated
|
|
@ -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.1.0",
|
"micron-parser": "^1.0.2",
|
||||||
"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,10 +4184,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/micron-parser": {
|
"node_modules/micron-parser": {
|
||||||
"version": "1.1.0",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/micron-parser/-/micron-parser-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/micron-parser/-/micron-parser-1.0.2.tgz",
|
||||||
"integrity": "sha512-v1CXQkmuxRDz6N0EWcUhPq+FzZ4RBXPO7zEuhrRIBsnOZBjXSZosSRYQyU53DNAPL5SR+xRRFDCGhvR0cexf8A==",
|
"integrity": "sha512-lYrEolylOUXeSISYrPRW/ZZAH1dpZRyTJ0VzQIA4cWJy0yNCXUUs+ujuAwV2OYlAPH8tCE1Z22+zg04Ilp/JWg==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dompurify": "*"
|
"dompurify": "*"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.1.0",
|
"micron-parser": "^1.0.2",
|
||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue