Skip to content

Conversation

@oltaco
Copy link
Contributor

@oltaco oltaco commented Jan 16, 2026

This PR adds a couple of small tweaks to the contact management that were previously proposed against the old contact management system. This supercedes #1369 and #1362.

Changes:

  • Always send PUSH_CODE_NEW_ADVERT whenever we receive an advert which did not get added to contacts[].
  • Only write the contacts file if contacts[] was updated.

@ripplebiz I've tested it pretty thoroughly and it seems to work as intended. I'm not a huge fan of the name of bool is_new but I've attempted to be clear on it's meaning/use in the comments. Happy to change it in the onDiscovereContact sig if you have any suggestions, it just means updating simple_secure_chat as well.

@liamcottle You might want to tweak the notifications for the app, since now if we are full we still send PUSH_CODE_NEW_ADVERT which means we pop two notifications at the same time.

@oltaco oltaco marked this pull request as ready for review January 16, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant