feat(invitations): send invitations into the candidate inbox atomically
This commit is contained in:
1 parent
fc35e27af5
commit
1a067221f7
46 files changed
+3276
-113
No files matched your search
@@ -28,13 +28,14 @@ func NewInboxContentResolver(resolvers map[domain.NotificationInboxSourceType]In
|
||||
}
|
||||
|
||||
// DefaultInboxSourceResolvers lists the source types that have a resolver
|
||||
// today. The synthetic notice resolver is registered only when
|
||||
// syntheticEnabled is true (development and browser-test stands); a stored
|
||||
// synthetic row is then listed without content. The invitation module adds
|
||||
// domain.NotificationInboxSourceInvitation with its own resolver; the
|
||||
// handler, the table, and the API need no change.
|
||||
// today: the delivered invitation, and the synthetic notice. The synthetic
|
||||
// notice resolver is registered only when syntheticEnabled is true
|
||||
// (development and browser-test stands); otherwise a stored synthetic row is
|
||||
// listed without content.
|
||||
func DefaultInboxSourceResolvers(syntheticEnabled bool) map[domain.NotificationInboxSourceType]InboxSourceResolver {
|
||||
resolvers := map[domain.NotificationInboxSourceType]InboxSourceResolver{}
|
||||
resolvers := map[domain.NotificationInboxSourceType]InboxSourceResolver{
|
||||
domain.NotificationInboxSourceInvitation: ResolveInvitationNotice,
|
||||
}
|
||||
if syntheticEnabled {
|
||||
resolvers[domain.NotificationInboxSourceOrganization] = ResolveSyntheticNotice
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user