Hi, thanks for the answer! 
I have implemented an "Undo turn" feature, and I think it would be better if opponents and spectators don't receive all the notifications for actions that have not been confirmed, for turn undoing, with tiles going here and there in the interface and log messages that will eventually not be an actual move. I'd really like to send them only the real moves, once they have been confirmed.
So what I would like to get is more something like this:
For the active player, in the flow of the game:
Pl uses action A
Pl uses action B
Pl cancels their turn
Pl uses action C
Pl gets bonus action 1
Pl uses action A
For other players, only once Pl turn is confirmed:
Pl uses action C
Pl gets bonus action 1
Pl uses action A
But if upon turn confirmation I send notifyAllPlayers() notifs without avoiding the messages for the active player, this is what I get for the active player:
Pl uses action A
Pl uses action B
Pl cancels their turn
Pl uses action C
Pl gets bonus action 1
Pl uses action A
Pl uses action C
Pl gets bonus action 1
Pl uses action A
All the real notifs are displayed twice, and this may not be obvious because identical messages are not next to each other. In the quick example above, there are only 3 messages in the game log, but sometimes there's like 8 or 10 messages in a turn. So I'd like to avoid duplicating all these messages.
No, the problem is that my case is not that simple. I'm not sending two different messages/notifs, I'm sending exactly the same message and notif (no hidden information at all) but at a different time. If you're interested, here's why (otherwise jump to next post, there are some other questions there):sourisdudesert wrote: ↑08 June 2020, 09:32 In your case, you get something like:
"Player X draws a <card_type> card"
"~ You draw <card_name> ~"
I think this is pretty clear, and it does the trick.
I have implemented an "Undo turn" feature, and I think it would be better if opponents and spectators don't receive all the notifications for actions that have not been confirmed, for turn undoing, with tiles going here and there in the interface and log messages that will eventually not be an actual move. I'd really like to send them only the real moves, once they have been confirmed.
So what I would like to get is more something like this:
For the active player, in the flow of the game:
Pl uses action A
Pl uses action B
Pl cancels their turn
Pl uses action C
Pl gets bonus action 1
Pl uses action A
For other players, only once Pl turn is confirmed:
Pl uses action C
Pl gets bonus action 1
Pl uses action A
But if upon turn confirmation I send notifyAllPlayers() notifs without avoiding the messages for the active player, this is what I get for the active player:
Pl uses action A
Pl uses action B
Pl cancels their turn
Pl uses action C
Pl gets bonus action 1
Pl uses action A
Pl uses action C
Pl gets bonus action 1
Pl uses action A
All the real notifs are displayed twice, and this may not be obvious because identical messages are not next to each other. In the quick example above, there are only 3 messages in the game log, but sometimes there's like 8 or 10 messages in a turn. So I'd like to avoid duplicating all these messages.