invited users in registration should be admin

This commit is contained in:
Cadence Ember 2023-10-12 22:55:52 +13:00
parent 3f3851d1f5
commit e84e0d28db
2 changed files with 4 additions and 2 deletions

View file

@ -134,7 +134,8 @@ async function channelToKState(channel, guild) {
"m.room.power_levels/": { "m.room.power_levels/": {
events: { events: {
"m.room.avatar": 0 "m.room.avatar": 0
} },
users: reg.ooye.invite.reduce((a, c) => (a[c] = 100, a), {})
}, },
"chat.schildi.hide_ui/read_receipts": { "chat.schildi.hide_ui/read_receipts": {
hidden: true hidden: true

View file

@ -66,7 +66,8 @@ async function guildToKState(guild, privacyLevel) {
"m.room.avatar/": avatarEventContent, "m.room.avatar/": avatarEventContent,
"m.room.guest_access/": {guest_access: createRoom.PRIVACY_ENUMS.GUEST_ACCESS[privacyLevel]}, "m.room.guest_access/": {guest_access: createRoom.PRIVACY_ENUMS.GUEST_ACCESS[privacyLevel]},
"m.room.history_visibility/": {history_visibility: createRoom.PRIVACY_ENUMS.SPACE_HISTORY_VISIBILITY[privacyLevel]}, "m.room.history_visibility/": {history_visibility: createRoom.PRIVACY_ENUMS.SPACE_HISTORY_VISIBILITY[privacyLevel]},
"m.room.join_rules/": {join_rule: createRoom.PRIVACY_ENUMS.SPACE_JOIN_RULES[privacyLevel]} "m.room.join_rules/": {join_rule: createRoom.PRIVACY_ENUMS.SPACE_JOIN_RULES[privacyLevel]},
"m.room.power_levels/": {users: reg.ooye.invite.reduce((a, c) => (a[c] = 100, a), {})}
} }
return guildKState return guildKState