Happy0 / ssb-chess

A library for building scuttlebutt chess clients with
GNU General Public License v2.0
63 stars 16 forks source link

Double move confirmation #50

Open Happy0 opened 6 years ago

Happy0 commented 6 years ago

bebot managed to move twice, somehow...

sbot links --dest "%rRPFDrNIGcg6BOgvza4S3pzdYqHUg0kxVorvdD15F10=.sha256" --values

I suspect because the m.redraw (on hiding confirmation) is in a setTimeout, the 'on confirm' click can rarely fire twice, or something... Tricky times.

Need to:

christianbundy commented 6 years ago

Eh, I hope that's the right philosophical approach, anyway :P.

I think so, otherwise you'd be in a position where users could edit their moves after the fact!