MM-64531: [Shared Channels] Users on different remote servers should not communicate unless the remotes have established secure connection. (#30985) (#33434)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3a6aeee57e
Коммит
07a34f02b6
@@ -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 = {};
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user