Fix power level definitions

This commit is contained in:
Travis Ralston 2019-03-17 23:16:18 -06:00
parent 0f538fc58e
commit a287828946

View file

@ -60,6 +60,10 @@ export class StickerStore {
}
});
const userPl = {};
userPl[await this.client.getUserId()] = 100;
userPl[pack.creatorId] = 50;
const roomId = await this.client.createRoom({
name: pack.name,
room_alias_name: "_stickerpack_" + pack.id,
@ -70,9 +74,7 @@ export class StickerStore {
},
},
power_level_content_override: {
users: {
"@stickers:dev.t2host.io": 100,
},
users: userPl,
users_default: 0,
events: {
"m.room.name": 100,