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

fix(identitys): fix error that complains from.reply_to is undefiend #881

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hernan604
Copy link
Contributor

No description provided.

@tadzik
Copy link
Contributor

tadzik commented Feb 2, 2021

I don't think this is fixing the problem: The problem is that from itself is undefined, and that's a symptom of a broken account, or missing data validation either around this.draftDeskservice.froms or this.model.from in there. This appears to just try to fix the symptom (and it looks bugged, since the ?: check doesn't do anything in practice).

I think the best we can do to find the problem is to detect the situation where from is undefined in this piece (which is the problem we're seeing in Sentry) and then add some extra debugging to the error being thrown (since that's pretty much as much as we can do at this point).

@castaway
Copy link
Contributor

I think we want something along the lines of:

if (from && from.reply_to !== null && from.reply_to.length > 0) {
   this.model.reply_to = from.reply_to;
} 

We did lately change things so that reply-to doesn't get set on signup here: https://gitlab.runbox.com/runbox/rmm/-/merge_requests/398/diffs - so we should test for & expect it to be empty.

@gtandersen
Copy link
Contributor

Thanks @castaway -- can you have another look @hernan604? :)

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.

4 participants