mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 09:43:13 +00:00
manually announcing should also update last announce at timestamp
This commit is contained in:
parent
3fbe4d1e36
commit
08e40c7b2a
1 changed files with 3 additions and 1 deletions
4
web.py
4
web.py
|
|
@ -137,7 +137,6 @@ class ReticulumWebChat:
|
|||
# announce
|
||||
if should_announce:
|
||||
self.announce()
|
||||
self.config.last_announced_at.set(int(time.time()))
|
||||
|
||||
# wait 1 second before next loop
|
||||
time.sleep(1)
|
||||
|
|
@ -930,6 +929,9 @@ class ReticulumWebChat:
|
|||
# handle announcing
|
||||
def announce(self):
|
||||
|
||||
# update last announced at timestamp
|
||||
self.config.last_announced_at.set(int(time.time()))
|
||||
|
||||
# send announce for lxmf
|
||||
self.local_lxmf_destination.announce(app_data=self.config.display_name.get().encode("utf-8"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue