fix: don't let user invite themself to reversi game

This commit is contained in:
Marie 2024-01-25 14:23:51 +01:00
parent 913dd581ef
commit 610f208c57
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 2 additions and 1 deletions

View file

@ -193,7 +193,7 @@ async function matchHeatbeat() {
}
async function matchUser() {
const user = await os.selectUser({ local: true });
const user = await os.selectUser({ local: true, includeSelf: false });
if (user == null) return;
matchingUser.value = user;