Skip to content

Commit

Permalink
Updated the 'leave party' command
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteFang5 committed Apr 9, 2023
1 parent f5c76e5 commit 03c1c7e
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,7 @@ export class TradeNotificationComponent implements OnInit, OnDestroy, OnChanges
}

private leaveParty(): void {
let activeCharacterName = this.settings.activeCharacterName
if (!activeCharacterName) {
activeCharacterName = this.accountService.getActiveCharacter()?.name
}
if (activeCharacterName) {
// Leaving a party is done by kicking yourself from said party
this.commandService.command(`/kick ${activeCharacterName}`, this.settings)
} else {
this.snackbar.warning(this.translate.get('settings.trade-companion.error-select-active-character'))
}
this.commandService.command(`/leave`, this.settings)
}

private kickFromParty(): void {
Expand Down

0 comments on commit 03c1c7e

Please sign in to comment.