forked from fair/matrix-puppeteer-line
Set room avatar on room creation
Also set proper power levels
This commit is contained in:
parent
d09a6c443a
commit
4edf0cdaa5
|
@ -454,20 +454,22 @@ class Portal(DBPortal, BasePortal):
|
||||||
"type": "m.room.related_groups",
|
"type": "m.room.related_groups",
|
||||||
"content": {"groups": [self.config["appservice.community_id"]]},
|
"content": {"groups": [self.config["appservice.community_id"]]},
|
||||||
})
|
})
|
||||||
#initial_state.append({
|
initial_state.append({
|
||||||
# "type": str(EventType.ROOM_POWER_LEVELS),
|
"type": str(EventType.ROOM_POWER_LEVELS),
|
||||||
# "content": {
|
"content": {
|
||||||
# "users": {
|
"users": {
|
||||||
# self.az.bot_mxid: 100,
|
self.az.bot_mxid: 100,
|
||||||
# self.main_intent.mxid: 100,
|
self.main_intent.mxid: 100,
|
||||||
# },
|
}
|
||||||
# "events": {},
|
}
|
||||||
# "events_default": 100,
|
})
|
||||||
# "state_default": 50,
|
if self.icon_mxc:
|
||||||
# "invite": 50,
|
initial_state.append({
|
||||||
# "redact": 0
|
"type": str(EventType.ROOM_AVATAR),
|
||||||
# }
|
"content": {
|
||||||
#})
|
"url": self.icon_mxc
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
# We lock backfill lock here so any messages that come between the room being created
|
# We lock backfill lock here so any messages that come between the room being created
|
||||||
# and the initial backfill finishing wouldn't be bridged before the backfill messages.
|
# and the initial backfill finishing wouldn't be bridged before the backfill messages.
|
||||||
|
|
Loading…
Reference in New Issue