@@ -896,7 +896,6 @@ export type State = Store & {
896896 fullName : string ,
897897 loadingKey ?: string
898898 ) => void
899- joinTeam : ( teamname : string ) => void
900899 launchNewTeamWizardOrModal : ( subteamOf ?: T . Teams . TeamID ) => void
901900 leaveTeam : ( teamname : string , permanent : boolean , context : 'teams' | 'chat' ) => void
902901 loadTeam : ( teamID : T . Teams . TeamID , _subscribe ?: boolean ) => void
@@ -1692,42 +1691,6 @@ export const useTeamsState = Z.createZustand<State>('teams', (set, get) => {
16921691 }
16931692 ignorePromise ( f ( ) )
16941693 } ,
1695- joinTeam : teamname => {
1696- const f = async ( ) => {
1697- let handedOffToInvite = false
1698- try {
1699- await T . RPCGen . teamsTeamAcceptInviteOrRequestAccessRpcListener ( {
1700- customResponseIncomingCallMap : {
1701- 'keybase.1.teamsUi.confirmInviteLinkAccept' : ( params , response ) => {
1702- handedOffToInvite = true
1703- navigateAppend (
1704- {
1705- name : 'teamInviteLinkJoin' ,
1706- params : {
1707- inviteDetails : params . details ,
1708- inviteKey : teamname ,
1709- } ,
1710- } ,
1711- true
1712- )
1713- response . result ( false )
1714- } ,
1715- } ,
1716- incomingCallMap : { } ,
1717- params : { tokenOrName : teamname } ,
1718- waitingKey : S . waitingKeyTeamsJoinTeam ,
1719- } )
1720- } catch ( error ) {
1721- if ( handedOffToInvite ) {
1722- return
1723- }
1724- if ( error instanceof RPCError ) {
1725- logger . info ( error . message )
1726- }
1727- }
1728- }
1729- ignorePromise ( f ( ) )
1730- } ,
17311694 launchNewTeamWizardOrModal : subteamOf => {
17321695 set ( s => {
17331696 s . newTeamWizard = T . castDraft ( {
0 commit comments