+
Skip to content

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Jul 16, 2025

Fix #7001

To be merged after #7116

@iequidoo iequidoo requested review from Hocuri and link2xt July 19, 2025 10:47
@iequidoo iequidoo force-pushed the iequidoo/sync_create_group branch 2 times, most recently from af4c33a to 2530a6c Compare July 19, 2025 16:02
@iequidoo iequidoo requested a review from link2xt July 19, 2025 16:07
@iequidoo iequidoo force-pushed the iequidoo/sync_create_group branch from 2530a6c to e4fd633 Compare July 27, 2025 13:54
@iequidoo iequidoo requested a review from link2xt July 27, 2025 13:54
@iequidoo iequidoo force-pushed the iequidoo/sync_create_group branch from e4fd633 to fa5fda4 Compare August 27, 2025 08:12
@Hocuri
Copy link
Collaborator

Hocuri commented Aug 27, 2025

Thanks for fixing! Once member addition&removal works, this LGTM

@iequidoo iequidoo force-pushed the iequidoo/sync_create_group branch 2 times, most recently from ab25c68 to 55bb249 Compare August 28, 2025 07:26
@iequidoo iequidoo requested review from Hocuri and link2xt and removed request for link2xt August 28, 2025 07:30
Copy link
Collaborator

@Hocuri Hocuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

But @link2xt said in #7111 (comment) to merge the PR here after #7116, so, merging this still has to wait a bit.

@link2xt
Copy link
Collaborator

link2xt commented Sep 12, 2025

It's after #7116 not because of merge conflict, but because if we do this before removing protected groups, we need to synchronize whether the group is protected or not. So we first remove protected groups and then don't have to synchronize this status.

@iequidoo iequidoo changed the base branch from main to link2xt/ykltkokxntvk September 14, 2025 03:42
@iequidoo iequidoo force-pushed the iequidoo/sync_create_group branch from 0fa0f14 to be8d47a Compare September 14, 2025 03:42
@link2xt link2xt force-pushed the link2xt/ykltkokxntvk branch from 5051240 to f1121da Compare October 15, 2025 17:16
@link2xt link2xt force-pushed the iequidoo/sync_create_group branch from be8d47a to 4ad5eeb Compare October 15, 2025 17:16
Unencrypted groups don't have grpid since key-contacts were merged, so we don't sync them for now.
If we use modules (which are actually namespaces), we can use shorter names. Another approach is to
only use modules for internal code incapsulation and use full names like deltachat-ffi does.
@link2xt link2xt force-pushed the link2xt/ykltkokxntvk branch from f1121da to f6c2ada Compare October 16, 2025 02:59
@link2xt link2xt force-pushed the iequidoo/sync_create_group branch from 4ad5eeb to ebea50e Compare October 16, 2025 02:59
let fingerprint = row.get(0)?;
let addr = row.get(1)?;
if row.get::<_, ContactId>(0)? == ContactId::SELF {
return Ok((self_fp.to_string(), String::new()));
Copy link
Contributor

@Simon-Laux Simon-Laux Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for?
(I may not have all context for this pr in my head, just trying to understand how it works.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no fingerprint for the self-contact in the contacts table, so we need to handle this case separately. AFAIR some test is failing w/o syncing the self-contact if it's actually in the chat

Copy link
Contributor

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't review the test, the rest looks good to me

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.

Synchronize unpromoted chats

4 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载