summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2018-09-09 23:27:39 +0200
committerzugz (tox) <mbays+tox@sdf.org>2018-11-29 21:52:23 +0100
commit9770880e975a09635a461c46c8fcc193bce57004 (patch)
tree8c7aa3c3ee8d264a3fdd97d8a5c49caa25f5da0b /docs
parentcaca350f435cf6a2a3778c64771dafdb7dde8b7a (diff)
Implement conferences saving
* add global friend_connection status callback, used for group rejoining * stop leaving groups on killing tox
Diffstat (limited to 'docs')
-rw-r--r--docs/minpgc.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/minpgc.md b/docs/minpgc.md
index aa2ed1dc..a09895bd 100644
--- a/docs/minpgc.md
+++ b/docs/minpgc.md
@@ -29,7 +29,7 @@ packet from it, or a New Peer message for it.
29 29
30If a frozen peer is seen to be active, we remove its 'frozen' flag and send a 30If a frozen peer is seen to be active, we remove its 'frozen' flag and send a
31Name group message. (We can hold off on sending this message until the next 31Name group message. (We can hold off on sending this message until the next
32tox\_iterate, and only send one message if many frozen peers become active at 32`tox_iterate`, and only send one message if many frozen peers become active at
33once). 33once).
34 34
35If we receive a New Peer message for a peer, we update its DHT pubkey. 35If we receive a New Peer message for a peer, we update its DHT pubkey.
@@ -102,13 +102,13 @@ actually make more sense in the implementation to have a separate list for
102frozen peers. 102frozen peers.
103 103
104## Saving 104## Saving
105Saving could be implemented by simply saving all live groups with their group 105Saving is implemented by simply saving all live groups with their group numbers
106numbers and full peer info for all peers. On reload, all peers would be set as 106and full peer info for all peers. On reload, all peers are set as frozen.
107frozen.
108 107
109The client would need to support this by understanding that these groups exist 108Clients needs to support this by understanding that groups may exist on
110on start-up (e.g. starting windows for them), and by not automatically killing 109start-up. Clients should call `tox_conference_get_chatlist` to obtain them. A
111groups on closing the client. 110group which is deleted (with `tox_conference_delete`) is removed permanently
111and will not be saved.
112 112
113## Limitations 113## Limitations
114If a peer disconnects from the group for a period short enough that group 114If a peer disconnects from the group for a period short enough that group