From af01107b5986802b0106e664b1b4b73e4dd7a9eb Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Tue, 5 Jul 2022 20:27:52 +0530 Subject: [PATCH] sub_store: Remove role field and SubscriptionRole type. This commit removes role field from StreamSubscription type and also removes SubscriptionRole type since we are not moving forward with stream administrator concept and instead working on new permssions model as per #19525. --- static/js/sub_store.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/static/js/sub_store.ts b/static/js/sub_store.ts index cd3f2831a0..0d14b0664c 100644 --- a/static/js/sub_store.ts +++ b/static/js/sub_store.ts @@ -7,11 +7,6 @@ export const enum StreamPostPolicy { MODERATORS = 4, } -export const enum SubscriptionRole { - STREAM_ADMINISTRATOR = 20, - MEMBER = 50, -} - export type Stream = { date_created: number; description: string; @@ -37,7 +32,6 @@ export type StreamSubscription = Stream & { is_muted: boolean; pin_to_top: boolean; push_notifications: boolean | null; - role: SubscriptionRole; stream_weekly_traffic: number | null; subscribers?: number[]; wildcard_mentions_notify: boolean | null;