feat: add reshuffle

This commit is contained in:
2026-06-24 21:01:21 +03:30
parent b1c7bfdd06
commit 27c20b1d34
6 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func (h *Hub) handle(in inbound) {
}
h.enqueue(c, tier)
}
case "choose_trump", "play_card", "leave":
case "choose_trump", "play_card", "reshuffle", "leave":
if c.room != nil {
if in.msg.Type == "leave" {
delete(h.locations, c.UserID) // پس از خروج دائمی، reconnect نشود