package message

import "strings"

func ReplyThreadRecentAuthorIDsFromDetails(authors []ReplyThreadParticipant) []string {
	if len(authors) == 0 {
		return []string{}
	}
	ids := make([]string, 0, len(authors))
	for _, author := range authors {
		if id := strings.TrimSpace(author.ID); id != "" {
			ids = append(ids, id)
		}
	}
	return ids
}
