-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
base: main
Are you sure you want to change the base?
Conversation
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.
Nice feature!
To be clear, this is not yet supported by core.
BackendRemote.rpc | ||
.getContactsByIds(accountId, group.pastContactIds) | ||
.then(pastContacts => { | ||
setPastContacts(Object.values(pastContacts)) | ||
}) |
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.
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.
{pastContacts.length > 0 && ( | ||
<> | ||
<div className='group-separator'> | ||
{pastContacts.length} Past Members |
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.
Needs to be translated.
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.
Adding translation at deltachat/deltachat-android#3587
29da587
to
b44eed1
Compare
For use together with deltachat/deltachat-core-rust#6442