member tag bug fix
This commit is contained in:
parent
02c1c02768
commit
3684c69b8a
1 changed files with 12 additions and 4 deletions
|
@ -166,8 +166,12 @@ export const joinRoom: Act = {
|
||||||
roomMembers.name,
|
roomMembers.name,
|
||||||
roomMembers.server,
|
roomMembers.server,
|
||||||
roomMembers.admin
|
roomMembers.admin
|
||||||
).add(roomID, client.name, client.server.tag, 0)
|
).add(
|
||||||
.query(db);
|
roomID,
|
||||||
|
client.name,
|
||||||
|
client.state == STATE.remote ? client.server.tag : "local",
|
||||||
|
0
|
||||||
|
).query(db);
|
||||||
if (queryx.affectedRows > 0) {
|
if (queryx.affectedRows > 0) {
|
||||||
aws("ok", "");
|
aws("ok", "");
|
||||||
} else {
|
} else {
|
||||||
|
@ -218,8 +222,12 @@ export const joinPublicRoom: Act = {
|
||||||
roomMembers.name,
|
roomMembers.name,
|
||||||
roomMembers.server,
|
roomMembers.server,
|
||||||
roomMembers.admin
|
roomMembers.admin
|
||||||
).add(roomID, client.name, client.server.tag, 0)
|
).add(
|
||||||
.query(db);
|
roomID,
|
||||||
|
client.name,
|
||||||
|
client.state == STATE.remote ? client.server.tag : "local",
|
||||||
|
0
|
||||||
|
).query(db);
|
||||||
if (queryx.affectedRows > 0) {
|
if (queryx.affectedRows > 0) {
|
||||||
aws("ok", "");
|
aws("ok", "");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue