-
-
Notifications
You must be signed in to change notification settings - Fork 106
Remove protected chats #7116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
link2xt
wants to merge
6
commits into
link2xt/recv-gossip-verified
Choose a base branch
from
link2xt/ykltkokxntvk
base: link2xt/recv-gossip-verified
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Remove protected chats #7116
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
14510f0
feat: verify contacts via Autocrypt-Gossip
link2xt fc14cca
api!: remove public APIs to check if the chat is protected
link2xt 20ee0b5
api!: remove APIs to create protected chats
link2xt 7448869
api!: remove Chat.is_protected()
link2xt 8e0c298
refactor: remove ProtectionStatus
link2xt 83a9265
api!: return boolean value from dc_contact_is_verified()
link2xt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1793,9 +1793,7 @@ dc_chat_t* dc_get_chat (dc_context_t* context, uint32_t ch | |
* | ||
* @memberof dc_context_t | ||
* @param context The context object. | ||
* @param protect If set to 1 the function creates group with protection initially enabled. | ||
* Only verified members are allowed in these groups | ||
* and end-to-end-encryption is always enabled. | ||
* @param protect Deprecated 2025-08-31, ignored. | ||
* @param name The name of the group chat to create. | ||
* The name may be changed later using dc_set_chat_name(). | ||
* To find out the name of a group later, see dc_chat_get_name() | ||
|
@@ -3924,23 +3922,6 @@ int dc_chat_is_device_talk (const dc_chat_t* chat); | |
int dc_chat_can_send (const dc_chat_t* chat); | ||
|
||
|
||
/** | ||
* Check if a chat is protected. | ||
* | ||
* Only verified contacts | ||
* as determined by dc_contact_is_verified() | ||
* can be added to protected chats. | ||
* | ||
* Protected chats are created using dc_create_group_chat() | ||
* by setting the 'protect' parameter to 1. | ||
* | ||
* @memberof dc_chat_t | ||
* @param chat The chat object. | ||
* @return 1=chat protected, 0=chat is not protected. | ||
*/ | ||
int dc_chat_is_protected (const dc_chat_t* chat); | ||
|
||
|
||
/** | ||
* Check if the chat is encrypted. | ||
* | ||
|
@@ -5357,8 +5338,7 @@ int dc_contact_is_blocked (const dc_contact_t* contact); | |
* | ||
* @memberof dc_contact_t | ||
* @param contact The contact object. | ||
* @return 0: contact is not verified. | ||
* 2: SELF and contact have verified their fingerprints in both directions. | ||
* @return 1=contact is verified, 0=contact is not verified. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Backwards-compat: At least Android expects this to return 2, rather than 1: return dc_contact_is_verified(get_dc_contact(env, obj))==2; I think it's easier to just keep returning 2 - at some point in the future, we will probably get rid of the C bindings, anyways. |
||
*/ | ||
int dc_contact_is_verified (dc_contact_t* contact); | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backwards-compat: Current UIs still check this because they are supposed to only let the user add verified contacts to protected chats.
So, would be nice to keep (and deprecate) this for another release, and let it always return 0.