Skip to content
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

feat: display past chat members #4531

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

feat: display past chat members #4531

wants to merge 7 commits into from

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Jan 21, 2025

For use together with deltachat/deltachat-core-rust#6442

Copy link
Collaborator

@WofWca WofWca left a comment

Choose a reason for hiding this comment

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

Nice feature!

To be clear, this is not yet supported by core.

Comment on lines 142 to 143
BackendRemote.rpc
.getContactsByIds(accountId, group.pastContactIds)
.then(pastContacts => {
setPastContacts(Object.values(pastContacts))
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be in useEffect in order to not call this on every re-render.
Perhaps also with outdated variable, as in https://github.com/deltachat/deltachat-desktop/pull/4500/files.

packages/frontend/src/components/dialogs/ViewGroup.tsx Outdated Show resolved Hide resolved
{pastContacts.length > 0 && (
<>
<div className='group-separator'>
{pastContacts.length} Past Members
Copy link
Collaborator

Choose a reason for hiding this comment

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

Needs to be translated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding translation at deltachat/deltachat-android#3587

@WofWca WofWca added the new-core involves or requires an dc-node/core update label Jan 22, 2025
@link2xt link2xt marked this pull request as draft January 22, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-core involves or requires an dc-node/core update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants