MM-64531: [Shared Channels] Users on different remote servers should not communicate unless the remotes have established secure connection. (#30985) (#33434)

Automatic Merge
Этот коммит содержится в:
Mattermost Build
2025-07-15 11:58:41 +03:00
коммит произвёл GitHub
родитель 3a6aeee57e
Коммит 07a34f02b6
20 изменённых файлов: 764 добавлений и 59 удалений

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

@@ -402,6 +402,10 @@ export default class Client4 {
return `${this.getBaseRoute()}/hooks/outgoing/${hookId}`;
}
getSharedChannelsRoute() {
return `${this.getBaseRoute()}/sharedchannels`;
}
getOAuthRoute() {
return `${this.url}/oauth`;
}
@@ -960,6 +964,13 @@ export default class Client4 {
);
};
canUserDirectMessage = (userId: string, otherUserId: string) => {
return this.doFetch<{can_dm: boolean}>(
`${this.getSharedChannelsRoute()}/users/${userId}/can_dm/${otherUserId}`,
{method: 'get'},
);
};
getProfilePictureUrl = (userId: string, lastPictureUpdate: number) => {
const params: any = {};