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.server,
|
||||
roomMembers.admin
|
||||
).add(roomID, client.name, client.server.tag, 0)
|
||||
.query(db);
|
||||
).add(
|
||||
roomID,
|
||||
client.name,
|
||||
client.state == STATE.remote ? client.server.tag : "local",
|
||||
0
|
||||
).query(db);
|
||||
if (queryx.affectedRows > 0) {
|
||||
aws("ok", "");
|
||||
} else {
|
||||
|
@ -218,8 +222,12 @@ export const joinPublicRoom: Act = {
|
|||
roomMembers.name,
|
||||
roomMembers.server,
|
||||
roomMembers.admin
|
||||
).add(roomID, client.name, client.server.tag, 0)
|
||||
.query(db);
|
||||
).add(
|
||||
roomID,
|
||||
client.name,
|
||||
client.state == STATE.remote ? client.server.tag : "local",
|
||||
0
|
||||
).query(db);
|
||||
if (queryx.affectedRows > 0) {
|
||||
aws("ok", "");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue