Commit 537ae622 authored by Steven's avatar Steven

chore: filter inbox type

parent 3e5e5b1f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment