Skip to content

Commit 2cf4921

Browse files
All moderators to post in Announcements
1 parent 8fffe48 commit 2cf4921

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

data/plan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ rooms:
5959
intro: |
6060
# Announcements
6161
This the place for timely conference updates and announcements.
62-
readOnly: true
62+
moderatorsOnly: true
6363
suggested: true
6464
SeaGL2023-CurrentSessions:
6565
tag: seagl2023-current-sessions

src/lib/Plan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export namespace Plan {
1313
control?: boolean;
1414
destroy?: boolean;
1515
intro?: string;
16+
moderatorsOnly?: boolean;
1617
name: string;
1718
private?: boolean;
1819
readOnly?: boolean;

src/modules/Reconciler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ export default class extends Module {
219219
...inherited,
220220
...this.plan.powerLevels.users,
221221
},
222-
...(room.readOnly || room.redirect ? { events_default: 99 } : {}),
222+
...(room.moderatorsOnly
223+
? { events_default: 50 }
224+
: room.readOnly || room.redirect
225+
? { events_default: 99 }
226+
: {}),
223227
};
224228
}
225229

0 commit comments

Comments
 (0)