Criptext / Criptext/Criptext-Email-React-Client

Refactor EMAIL_MAILBOX > handleNewMessageEvent && fetchEmailBody methods

Open
#1,239 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
75
Forks
23
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Right now these functions are cumbersome, crowded and prone to errors. Example, fetchEmailBody will return undefined if the request status is not 200 or 499.
handleNewMessageEvent object dereferences the return value of an undefined throwing a wrong exception.

**Describe the solution you'd like**
This needs to be broken down into simpler functions and logic

**Describe alternatives you've considered (Optional)**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context (Optional)**
Add any other context or screenshots about the feature request here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.