member tag bug fix

This commit is contained in:
jusax23 2023-03-21 20:15:59 +01:00
parent 02c1c02768
commit 3684c69b8a
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -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 {