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

Empty list on get emails when inbox is empty #3

Closed
KathrynN opened this issue Nov 20, 2020 · 1 comment
Closed

Empty list on get emails when inbox is empty #3

KathrynN opened this issue Nov 20, 2020 · 1 comment

Comments

@KathrynN
Copy link

Enhancement request - please provide an empty list when getting all emails from an empty inbox
(GET: "/api/messages/")

When the inbox has messages, these are displayed as a list under the key "data", but when the inbox is empty this label is missing. This means that everywhere one calls this, one has to check if the key is present. Personally I think it would be easier from a user's perspective if the list was provided, e.g.
'data':[]
so as to not break e.g. streaming from this value.

Thank you!

@msztolcman
Copy link
Owner

Hi @KathrynN,

In fact, this was an error in Sendria, but it's fixed now. Now all API methods should always return valid structures.
Thanks for your report!

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

No branches or pull requests

2 participants