Function for getting ChatUser object from user id
ChatUser getUserFromId(String userId) => userId == currentUser.id ? currentUser : otherUsers.firstWhere((element) => element.id == userId);