Don't group addresses of type forward.

This commit is contained in:
Santiago Lamora 2019-12-13 13:49:12 +01:00
parent 20da66cfec
commit 4f9babb7b4
1 changed files with 2 additions and 1 deletions

View File

@ -148,8 +148,9 @@ class MailView(ServiceListView):
def retrieve_mailbox(value):
mailboxes = value.get('mailboxes')
# forwarded address should not grouped
if len(mailboxes) == 0:
return ''
return value.get('name')
return mailboxes[0]['id']