WebApp: Fix channel-detail page for non-owned channels
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
User,
|
||||
UserWithExtra,
|
||||
UserPreview,
|
||||
ChannelPreview,
|
||||
KeyTokenPreview,
|
||||
Message,
|
||||
MessageListParams,
|
||||
MessageListResponse,
|
||||
@@ -98,6 +100,14 @@ export class ApiService {
|
||||
return this.http.get<ClientPreviewResponse>(`${this.baseUrl}/preview/clients/${clientId}`);
|
||||
}
|
||||
|
||||
getChannelPreview(channelId: string): Observable<ChannelPreview> {
|
||||
return this.http.get<ChannelPreview>(`${this.baseUrl}/preview/channels/${channelId}`);
|
||||
}
|
||||
|
||||
getKeyPreview(keyId: string): Observable<KeyTokenPreview> {
|
||||
return this.http.get<KeyTokenPreview>(`${this.baseUrl}/preview/keys/${keyId}`);
|
||||
}
|
||||
|
||||
// Channel endpoints
|
||||
getChannels(userId: string, selector?: ChannelSelector): Observable<ChannelListResponse> {
|
||||
let params = new HttpParams();
|
||||
|
||||
Reference in New Issue
Block a user