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

Open email from desktop notification #7438

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Conversation

charlag
Copy link
Contributor

@charlag charlag commented Aug 22, 2024

No description provided.

@charlag
Copy link
Contributor Author

charlag commented Aug 23, 2024

We got it to a state where we think it works sufficiently well. Commits need some cleanup and then it should be merged.

@charlag charlag force-pushed the 7373-open-email-desktop branch 2 times, most recently from a3bcaf6 to 8c4f6b1 Compare August 26, 2024 11:51
@charlag charlag marked this pull request as ready for review August 26, 2024 12:32
@charlag
Copy link
Contributor Author

charlag commented Aug 26, 2024

I put the commit to refactor EntityClient into the same PR but I can easily split it if you think it's better

@charlag
Copy link
Contributor Author

charlag commented Aug 26, 2024

I re-wrote the commits so that they make more sense, please lmk if I messed something up, especially authorship.

}

const cachedEntity = await this.storage.get(typeRef, listId, elementId)
let cachedEntity: T | null
if (cacheMode == CacheMode.Cache) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably use === here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

absolutely!

@charlag
Copy link
Contributor Author

charlag commented Aug 30, 2024

The fix for SSE and fix for Android are mostly unrelated but ScopedRouter directly affects this issue.

charlag and others added 2 commits September 2, 2024 11:09
Overwrite identifier if it changed, do not duplicate user ids.
#7373

Co-authored-by: paw <paw-hub@users.noreply.github.com>
Co-authored-by: ivk <ivk@tutao.de>
// make sure that we display *something* in the list
await this.setListId(folderToUse)
}
if (this.stickyMailId != elementId) return
Copy link
Contributor

Choose a reason for hiding this comment

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

!== ?

const folderToUse = await this.selectFolderToUse(folder ?? null)
await this.setListId(folderToUse)
// Selecting folder is async, check that the target hasn't changed inbetween
if (this.loadingTargetId != loadingTargetId) return
Copy link
Contributor

Choose a reason for hiding this comment

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

!== ?


private readonly renderConfig: RenderConfig<Mail, MailRow> = {
itemHeight: size.list_row_height,
multiselectionAllowed: MultiselectMode.Enabled,
createElement: (dom: HTMLElement) => {
const mailRow = new MailRow(false, (entity) => this.mailViewModel.listModel?.onSingleExclusiveSelection(entity))
const mailRow = new MailRow(false, (entity) => this.attrs?.onSingleExclusiveSelection(entity))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this.attrs ever be null?

charlag and others added 4 commits September 2, 2024 13:50
Show a message if the email to be opened is no longer there.

Keep track of explicitly opened email independent of the list state.

Handle offline errors.

Fix URL and ViewSlider handling

Close #7373

Co-authored-by: jat <jat@tutao.de>
Co-authored-by: paw <paw-hub@users.noreply.github.com>
This improves readability and hopefully makes it harder to mix up the
arguments.
@charlag charlag merged commit 8760401 into dev-mail Sep 2, 2024
2 checks passed
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.

3 participants