mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
add app data for group announce
This commit is contained in:
parent
1185b2d6b5
commit
f1841ad627
1 changed files with 5 additions and 2 deletions
|
|
@ -52,8 +52,11 @@ class GroupChatServer:
|
|||
|
||||
# announce group destination
|
||||
def announce(self):
|
||||
# todo add app data about group: public_display_name, members_count, group_type
|
||||
self.group_destination.announce()
|
||||
self.group_destination.announce(app_data=json.dumps({
|
||||
"group_type": self.group_type,
|
||||
"public_display_name": self.public_display_name,
|
||||
"members_count": self.data_provider.get_member_count(self.group_destination.hash),
|
||||
}).encode("utf-8"))
|
||||
print("[GroupChatServer] announced destination: " + RNS.prettyhexrep(self.group_destination.hash))
|
||||
|
||||
# error response format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue