mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
update how lxmf address is announced
This commit is contained in:
parent
963078fab0
commit
6a1988e0be
1 changed files with 7 additions and 3 deletions
10
meshchat.py
10
meshchat.py
|
|
@ -109,7 +109,10 @@ class ReticulumMeshChat:
|
|||
self.message_router.delivery_per_transfer_limit = self.config.lxmf_delivery_transfer_limit_in_bytes.get() / 1000
|
||||
|
||||
# register lxmf identity
|
||||
self.local_lxmf_destination = self.message_router.register_delivery_identity(self.identity)
|
||||
self.local_lxmf_destination = self.message_router.register_delivery_identity(
|
||||
identity=self.identity,
|
||||
display_name=self.config.display_name.get(),
|
||||
)
|
||||
|
||||
# set a callback for when an lxmf message is received
|
||||
self.message_router.register_delivery_callback(self.on_lxmf_delivery)
|
||||
|
|
@ -1144,8 +1147,9 @@ class ReticulumMeshChat:
|
|||
# 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"))
|
||||
# send announce for lxmf (ensuring name is updated before announcing)
|
||||
self.local_lxmf_destination.display_name = self.config.display_name.get()
|
||||
self.message_router.announce(destination_hash=self.local_lxmf_destination.hash)
|
||||
|
||||
# send announce for audio call
|
||||
self.audio_call_manager.announce(app_data=self.config.display_name.get().encode("utf-8"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue