MM-60640: [Shared Channels] Display remotes' names in Shared With tooltip (#30886)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bd16f4f9bf
Коммит
bd5ca1c07e
@@ -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`,
|
||||
|
||||
Ссылка в новой задаче
Block a user