you can do chat2.verifyDropdownUser(credentials.userName);
And then  switchToWindow(driver);
 chat.verifyUserJoinedChat(credentials.userName2);
 chat.verifyDropdownUser(credentials.userName2); 

It would save us one window switching