summaryrefslogtreecommitdiff
path: root/pkg/ui/views/game_keymap.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-18 16:09:32 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-18 16:09:32 +0200
commit7c5a6176b27b6b0c0c3ef8a4aedbdec871391a80 (patch)
tree5ebfc9b402b8aa941ab9617b5f3842071edafedf /pkg/ui/views/game_keymap.go
parent0b4fb251efdfd2fba7cd6154f5f59bd61ede15f1 (diff)
Add type on messages between peers
Diffstat (limited to 'pkg/ui/views/game_keymap.go')
-rw-r--r--pkg/ui/views/game_keymap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ui/views/game_keymap.go b/pkg/ui/views/game_keymap.go
index 00b062f..283a69c 100644
--- a/pkg/ui/views/game_keymap.go
+++ b/pkg/ui/views/game_keymap.go
@@ -44,7 +44,7 @@ func (m GameModel) handleKeyMsg(msg tea.KeyMsg) (GameModel, tea.Cmd) {
outcome = string(chess.WhiteWon)
}
- m.network.Send([]byte("🏳️"))
+ m.network.Send([]byte("abandon"), []byte("🏳️"))
return m, m.endGame(outcome)
}
case key.Matches(msg, m.keys.Quit):