MM-66424: Improve team filtering in common teams API (#34454) (#34854)

Cherry-pick 6404ab29acc04901c5cb1cf5ad97fc3c0693e2cd into release-10.11
Этот коммит содержится в:
Jesse Hallam
2026-01-06 12:50:30 -04:00
коммит произвёл GitHub
родитель 989f3a36dc
Коммит a07b1d7a8c
6 изменённых файлов: 371 добавлений и 43 удалений

Просмотреть файл

@@ -491,3 +491,19 @@ func ExampleClient4_UpdateChannelScheme() {
log.Fatal(err)
}
}
func ExampleClient4_GetGroupMessageMembersCommonTeams() {
client := model.NewAPIv4Client(os.Getenv("MM_SERVICESETTINGS_SITEURL"))
client.SetToken(os.Getenv("MM_AUTHTOKEN"))
channelID := "gm_channel_id"
teams, _, err := client.GetGroupMessageMembersCommonTeams(context.Background(), channelID)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d common teams for members of channel %s\n", len(teams), channelID)
for _, team := range teams {
fmt.Printf(" - %s (%s)\n", team.DisplayName, team.Name)
}
}