snapshot_poker_ui_ux_fix_again_fuckmylife
This commit is contained in:
@@ -2426,6 +2426,20 @@ function createPokerService({
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Defensive cleanup for sessions created before
|
||||
* buy-in markers were cleared immediately after
|
||||
* durable table membership was committed.
|
||||
*/
|
||||
|
||||
await clearOperationQuietly(
|
||||
userId,
|
||||
buyInOperationId(
|
||||
gameId,
|
||||
player.sessionId
|
||||
)
|
||||
);
|
||||
|
||||
if (
|
||||
nextGame.state ===
|
||||
"CLOSED"
|
||||
@@ -2532,6 +2546,14 @@ function createPokerService({
|
||||
player.sessionId
|
||||
)
|
||||
);
|
||||
|
||||
await clearOperationQuietly(
|
||||
player.userId,
|
||||
buyInOperationId(
|
||||
gameId,
|
||||
player.sessionId
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
await deleteGameQuietly(
|
||||
@@ -2794,6 +2816,14 @@ function createPokerService({
|
||||
)
|
||||
);
|
||||
|
||||
await clearOperationQuietly(
|
||||
player.userId,
|
||||
buyInOperationId(
|
||||
game.gameId,
|
||||
player.sessionId
|
||||
)
|
||||
);
|
||||
|
||||
const remainingGame =
|
||||
await store.getGame(
|
||||
game.gameId
|
||||
|
||||
Reference in New Issue
Block a user