mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 06:41:27 +02:00
fix: Duplicate address restored message
This commit is contained in:
@@ -218,14 +218,15 @@ class ConnectionHandler {
|
||||
});
|
||||
} else {
|
||||
this.io.to(socket.id).emit('session_token', { token: sessionInfo.token });
|
||||
}
|
||||
|
||||
// If payout address already set, echo confirmation for UI convenience
|
||||
if (sessionInfo.user.payout_address) {
|
||||
this.io.to(socket.id).emit('address_confirmed', {
|
||||
address: sessionInfo.user.payout_address,
|
||||
message: 'Payout address restored.'
|
||||
});
|
||||
|
||||
// Only emit address_confirmed for NEW sessions (not resumed ones)
|
||||
// Resumed sessions already get payoutAddress in session_resumed
|
||||
if (sessionInfo.user.payout_address) {
|
||||
this.io.to(socket.id).emit('address_confirmed', {
|
||||
address: sessionInfo.user.payout_address,
|
||||
message: 'Payout address restored.'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Credits convenience push (include creditsPerGame for games remaining calculation)
|
||||
|
||||
Reference in New Issue
Block a user