MM-60640: [Shared Channels] Display remotes' names in Shared With tooltip (#30886)

Этот коммит содержится в:
catalintomai
2025-06-19 07:57:22 +02:00
коммит произвёл GitHub
родитель bd16f4f9bf
Коммит bd5ca1c07e
33 изменённых файлов: 1982 добавлений и 26 удалений

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

@@ -120,7 +120,7 @@ import type {ScheduledPost} from '@mattermost/types/schedule_post';
import type {Scheme} from '@mattermost/types/schemes';
import type {Session} from '@mattermost/types/sessions';
import type {CompleteOnboardingRequest} from '@mattermost/types/setup';
import type {SharedChannelRemote} from '@mattermost/types/shared_channels';
import type {RemoteClusterInfo, SharedChannelRemote} from '@mattermost/types/shared_channels';
import type {
GetTeamMembersOpts,
Team,
@@ -2093,6 +2093,20 @@ export default class Client4 {
);
};
getSharedChannelRemoteInfos = (channelId: string) => {
return this.doFetch<RemoteClusterInfo[]>(
`${this.getBaseRoute()}/sharedchannels/${channelId}/remotes`,
{method: 'GET'},
);
};
getRemoteClusterInfo = (remoteId: string) => {
return this.doFetch<RemoteClusterInfo>(
`${this.getBaseRoute()}/sharedchannels/remote_info/${remoteId}`,
{method: 'GET'},
);
};
sharedChannelRemoteInvite = (remoteId: string, channelId: string) => {
return this.doFetch<StatusOK>(
`${this.getRemoteClusterRoute(remoteId)}/channels/${channelId}/invite`,