mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: filter inbox type
This commit is contained in:
@ -31,7 +31,11 @@ func (s *APIV1Service) ListInboxes(ctx context.Context, _ *v1pb.ListInboxesReque
|
|||||||
Inboxes: []*v1pb.Inbox{},
|
Inboxes: []*v1pb.Inbox{},
|
||||||
}
|
}
|
||||||
for _, inbox := range inboxes {
|
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
|
return response, nil
|
||||||
|
Reference in New Issue
Block a user