added function to get list of participant user ids for a thread