oxen-io / libsession-util

Session utilities library
GNU General Public License v3.0
15 stars 16 forks source link

Return good hashes from merge() #65

Closed jagerman closed 11 months ago

jagerman commented 1 year ago

Session clients required the list of hashes from a merge() to perform various operations based on the messages that were accepted. This updates merge() to return a vector of accepted hashes.

For the C API, this returns a config_string_list* pointer that needs to be freed, but contains all the good hashes (the same way current_hashes() works).

Edit: most of this is merged via #51; this PR just updates the documentation and fixes some leaky code in the test suite.