Skip to content

Commit fc651e2

Browse files
Set avatars of subspaces
1 parent f6184cd commit fc651e2

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

data/plan.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ jitsiDomain: meet.seagl.org
33
defaultRoomVersion: "10"
44
timeZone: America/Los_Angeles
55
avatars:
6-
default: mxc://seattlematrix.org/KYhSbbzRiKcPHYxBsowvvQgJ
7-
patch: mxc://seattlematrix.org/HdtuUcOVpqBKkjYnNWqLWYRx
8-
room: mxc://seattlematrix.org/VMXxAOmOegYTuAfKUxtkksUl
6+
bolt: mxc://seattlematrix.org/sbncWsKBpbPIJvCBuhRwxadf
7+
clock: mxc://seattlematrix.org/RpXVMvMoCndIWeaQJzoCUGjd
8+
cog: mxc://seattlematrix.org/mtDzVXHUtaLMyBRIWntrVCIL
9+
dialog: mxc://seattlematrix.org/YStudgPKhOyeHzsnkePQEAQC
10+
info: mxc://seattlematrix.org/QVjEUBPCNfxDCvKdxIqRmGRT
11+
location: mxc://seattlematrix.org/VMXxAOmOegYTuAfKUxtkksUl
12+
logo-headset: mxc://seattlematrix.org/KYhSbbzRiKcPHYxBsowvvQgJ
13+
moon: mxc://seattlematrix.org/pUESbFSkZxSlqHwjOFwjvwcA
14+
play: mxc://seattlematrix.org/orEuouEJkXVwagkcxyMHEDSn
15+
sticker-pointing: mxc://seattlematrix.org/HdtuUcOVpqBKkjYnNWqLWYRx
16+
17+
default: logo-headset
18+
room: location
919
inheritUserPowerLevels:
1020
"#staff:seagl.org":
1121
raiseTo: 50
@@ -24,7 +34,7 @@ powerLevels:
2434
steward:
2535
id: "@seagl-bot:seattlematrix.org"
2636
name: Patch
27-
avatar: patch
37+
avatar: sticker-pointing
2838
aliasProxy:
2939
homeserver: seagl.org
3040
prefix: SeaGL2024
@@ -72,6 +82,7 @@ rooms:
7282
suggested: true
7383
SeaGL2024-CurrentSessions:
7484
tag: seagl2024-current-sessions
85+
avatar: play
7586
name: Current Sessions
7687
topic: >-
7788
Sessions that are currently taking place
@@ -80,6 +91,7 @@ rooms:
8091
children: CURRENT_SESSIONS
8192
SeaGL2024-Hallway:
8293
tag: seagl2024-hallway
94+
avatar: dialog
8395
name: Hallway
8496
topic: >-
8597
Off-Topic, Social, and Sponsor conversations (the "hallway track")
@@ -138,6 +150,7 @@ rooms:
138150
· Please note, the SeaGL Code of Conduct is in effect in all conference spaces.
139151
SeaGL2024-Information:
140152
tag: seagl2024-information
153+
avatar: info
141154
name: Information
142155
topic: >-
143156
The rooms with all of the answers to your questions! Info rooms for speakers, sponsors, attendees, etc.
@@ -198,6 +211,7 @@ rooms:
198211
Please note, the SeaGL Code of Conduct is in effect and can be found here: https://seagl.org/code_of_conduct
199212
SeaGL2024-Restricted:
200213
tag: seagl2024-restricted
214+
avatar: cog
201215
name: Restricted
202216
topic: >-
203217
Rooms that are only available to SeaGL 2024 staff and volunteers
@@ -228,13 +242,15 @@ rooms:
228242
control: true
229243
SeaGL2024-UpcomingSessions:
230244
tag: seagl2024-upcoming-sessions
245+
avatar: clock
231246
name: Upcoming Sessions
232247
topic: >-
233248
Sessions which have not yet happened—join ahead of time and chat with other interested attendees!
234249
· Please note, the SeaGL Code of Conduct is in effect in all conference spaces.
235250
children: FUTURE_SESSIONS
236251
SeaGL2024-CompletedSessions:
237252
tag: seagl2024-completed-sessions
253+
avatar: moon
238254
name: Completed Sessions
239255
topic: >-
240256
Sessions that have been wrapped up!

src/modules/Reconciler.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,8 @@ export default class extends Module {
10041004
}
10051005

10061006
private resolveAvatar(name: string = "default"): string {
1007-
return expect(this.plan.avatars[name], `avatar ${name}`);
1007+
const result = expect(this.plan.avatars[name], `avatar ${name}`);
1008+
return result.startsWith("mxc://") ? result : this.resolveAvatar(result);
10081009
}
10091010

10101011
private resolveTag(tag: string): string | undefined {

0 commit comments

Comments
 (0)