chore: filter inbox type

pull/3399/head
Steven 10 months ago
parent 3e5e5b1f80
commit 537ae622d2

@ -31,7 +31,11 @@ func (s *APIV1Service) ListInboxes(ctx context.Context, _ *v1pb.ListInboxesReque
Inboxes: []*v1pb.Inbox{},
}
for _, inbox := range inboxes {
response.Inboxes = append(response.Inboxes, convertInboxFromStore(inbox))
inboxMessage := convertInboxFromStore(inbox)
if inboxMessage.Type == v1pb.Inbox_TYPE_UNSPECIFIED {
continue
}
response.Inboxes = append(response.Inboxes, inboxMessage)
}
return response, nil

Loading…
Cancel
Save