trying to improve the code that rejoins chat users after server update