mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 14:03:10 +02:00
fix: don't let user invite themself to reversi game
This commit is contained in:
parent
913dd581ef
commit
610f208c57
2 changed files with 2 additions and 1 deletions
|
@ -423,6 +423,7 @@ export async function selectUser(opts: { includeSelf?: boolean, local?: boolean
|
|||
return new Promise((resolve, reject) => {
|
||||
popup(defineAsyncComponent(() => import('@/components/MkUserSelectDialog.vue')), {
|
||||
includeSelf: opts.includeSelf,
|
||||
local: opts.local,
|
||||
}, {
|
||||
ok: user => {
|
||||
resolve(user);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue