Skip to content

Commit

Permalink
hide player like/dislike after command/quickreact
Browse files Browse the repository at this point in the history
  • Loading branch information
toobeeh committed Feb 3, 2025
1 parent f13f91d commit 283f32d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ export class ChatQuickReactFeature extends TypoFeature {
this._rateInteractionsStyle.remove();
}

private async hideGameRate(){
const elements = await this._elements.complete();
elements.gameRate.style.display = "none";
}

async toggleQuickReactMenu() {
if (this._flyoutComponent) {
this._flyoutComponent.close();
Expand Down Expand Up @@ -216,6 +221,7 @@ export class ChatQuickReactFeature extends TypoFeature {
}

await this._lobbyInteractionsService.likePlayer();
await this.hideGameRate();
toast.resolve(`Liked the drawing of ${player.name}`);
}

Expand All @@ -234,6 +240,7 @@ export class ChatQuickReactFeature extends TypoFeature {
}

await this._lobbyInteractionsService.dislikePlayer();
await this.hideGameRate();
toast.resolve(`Disliked the drawing of ${player.name}`);
}

Expand Down

0 comments on commit 283f32d

Please sign in to comment.