Skip to content

Commit

Permalink
TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
fisx committed Nov 6, 2024
1 parent bd445d0 commit a6099e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/wire-api/src/Wire/API/Team/Invitation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ newtype InvitationLocation = InvitationLocation
}
deriving stock (Eq, Show, Generic)

-- TODO: is there an invitation list EP that we should also change?

instance S.ToParamSchema InvitationLocation where
toParamSchema _ =
mempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ createInvitation' tid mExpectedInvId inviteeRole mbInviterUid inviterEmail invRe
when blacklistedEm $
throw TeamInvitationBlacklistedEmail

-- TODO: explain change in confluence.

mEmailOwner <- getLocalUserAccountByUserKey uke
isPersonalUserMigration <- case mEmailOwner of
Nothing -> pure False
Expand Down Expand Up @@ -163,6 +165,8 @@ createInvitation' tid mExpectedInvId inviteeRole mbInviterUid inviterEmail invRe
}
in Store.insertInvitation insertInv timeout

-- TODO: write tests (in wire-subsystem? in /integration?)

let sendOp =
if isPersonalUserMigration
then sendTeamInvitationMailPersonalUser
Expand Down
1 change: 1 addition & 0 deletions services/brig/src/Brig/Team/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ mkInviteUrl ShowInvitationUrl team (InvitationCode c) = do
template <- invitationEmail <$> input
getInviteUrl template team c

-- TODO: is this also code already available from wire-subsystems?
getInvitation ::
( Member GalleyAPIAccess r,
Member InvitationStore r,
Expand Down

0 comments on commit a6099e8

Please sign in to comment.