made bconnect.click() into function, seems to have solved the re loading of ping buddies after guest name change

This commit is contained in:
NigeParis 2025-12-04 18:04:41 +01:00 committed by apetitco
parent 9e262c7fc4
commit b1bf460ef2
2 changed files with 153 additions and 91 deletions

View file

@ -34,6 +34,7 @@ interface ClientInfo {
}
export type ClientMessage = {
command: string
destination: string;
user: string;
text: string;
@ -269,6 +270,7 @@ async function onReady(fastify: FastifyInstance) {
if (!clientName) return;
console.log(color.green, `Client logging out: ${clientName} (${socket.id})`);
const obj = {
command: '',
destination: 'system-info',
type: 'chat' as const,
user: clientName,
@ -295,6 +297,7 @@ async function onReady(fastify: FastifyInstance) {
if (clientName !== null) {
const obj = {
command: '',
destination: 'system-info',
type: 'chat',
user: clientName,
@ -319,6 +322,7 @@ async function onReady(fastify: FastifyInstance) {
if (clientName !== null) {
const obj = {
command: '',
destination: 'system-info',
type: 'chat',
user: clientName,
@ -364,6 +368,7 @@ async function onReady(fastify: FastifyInstance) {
);
if (clientName !== null) {
const obj = {
command: '',
destination: 'system-info',
type: 'chat',
user: clientName,