@@ -165,80 +165,6 @@ export class Party {
165165 )
166166 }
167167
168- // static async leaveParty(
169- // currentWindow: BrowserWindow,
170- // selectedAccounts: AccountDataList,
171-
172- // // eslint-disable-next-line @typescript-eslint/no-unused-vars
173- // _accounts: AccountDataList,
174-
175- // claimState: boolean
176- // ) {
177- // await Promise.allSettled(
178- // selectedAccounts.map(async (account) => {
179- // account
180-
181- // const accessToken = await Authentication.verifyAccessToken(
182- // account,
183- // currentWindow
184- // )
185-
186- // if (!accessToken) {
187- // return
188- // }
189-
190- // const result = await fetchParty({
191- // accessToken,
192- // accountId: account.accountId,
193- // })
194- // const party = result.data.current[0]
195-
196- // if (!party) {
197- // return
198- // }
199-
200- // const member = party.members.find(
201- // (member) => account.accountId === member.account_id
202- // )
203-
204- // if (!member) {
205- // return
206- // }
207-
208- // return await Party.kickMember({
209- // party,
210- // // currentWindow,
211- // account: {
212- // ...account,
213- // accessToken: accessToken,
214- // },
215- // accountIdToKick: account.accountId,
216- // })
217- // })
218- // )
219-
220- // if (claimState) {
221- // ClaimRewards.core(currentWindow, selectedAccounts).then(
222- // (response) => {
223- // if (response) {
224- // currentWindow.webContents.send(
225- // ElectronAPIEventKeys.ClaimRewardsClientNotification,
226- // response
227- // )
228- // }
229- // }
230- // )
231- // }
232-
233- // currentWindow.webContents.send(
234- // ElectronAPIEventKeys.PartyLeaveActionNotification,
235- // selectedAccounts.length
236- // )
237- // }
238-
239- /**
240- * With optimization (avoid party re-fetching)
241- */
242168 static async leaveParty (
243169 currentWindow : BrowserWindow ,
244170 selectedAccounts : AccountDataList ,
0 commit comments