Skip to content

Commit

Permalink
Set avatars of subspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Oct 27, 2024
1 parent f6184cd commit fc651e2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
24 changes: 20 additions & 4 deletions data/plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ jitsiDomain: meet.seagl.org
defaultRoomVersion: "10"
timeZone: America/Los_Angeles
avatars:
default: mxc://seattlematrix.org/KYhSbbzRiKcPHYxBsowvvQgJ
patch: mxc://seattlematrix.org/HdtuUcOVpqBKkjYnNWqLWYRx
room: mxc://seattlematrix.org/VMXxAOmOegYTuAfKUxtkksUl
bolt: mxc://seattlematrix.org/sbncWsKBpbPIJvCBuhRwxadf
clock: mxc://seattlematrix.org/RpXVMvMoCndIWeaQJzoCUGjd
cog: mxc://seattlematrix.org/mtDzVXHUtaLMyBRIWntrVCIL
dialog: mxc://seattlematrix.org/YStudgPKhOyeHzsnkePQEAQC
info: mxc://seattlematrix.org/QVjEUBPCNfxDCvKdxIqRmGRT
location: mxc://seattlematrix.org/VMXxAOmOegYTuAfKUxtkksUl
logo-headset: mxc://seattlematrix.org/KYhSbbzRiKcPHYxBsowvvQgJ
moon: mxc://seattlematrix.org/pUESbFSkZxSlqHwjOFwjvwcA
play: mxc://seattlematrix.org/orEuouEJkXVwagkcxyMHEDSn
sticker-pointing: mxc://seattlematrix.org/HdtuUcOVpqBKkjYnNWqLWYRx

default: logo-headset
room: location
inheritUserPowerLevels:
"#staff:seagl.org":
raiseTo: 50
Expand All @@ -24,7 +34,7 @@ powerLevels:
steward:
id: "@seagl-bot:seattlematrix.org"
name: Patch
avatar: patch
avatar: sticker-pointing
aliasProxy:
homeserver: seagl.org
prefix: SeaGL2024
Expand Down Expand Up @@ -72,6 +82,7 @@ rooms:
suggested: true
SeaGL2024-CurrentSessions:
tag: seagl2024-current-sessions
avatar: play
name: Current Sessions
topic: >-
Sessions that are currently taking place
Expand All @@ -80,6 +91,7 @@ rooms:
children: CURRENT_SESSIONS
SeaGL2024-Hallway:
tag: seagl2024-hallway
avatar: dialog
name: Hallway
topic: >-
Off-Topic, Social, and Sponsor conversations (the "hallway track")
Expand Down Expand Up @@ -138,6 +150,7 @@ rooms:
· Please note, the SeaGL Code of Conduct is in effect in all conference spaces.
SeaGL2024-Information:
tag: seagl2024-information
avatar: info
name: Information
topic: >-
The rooms with all of the answers to your questions! Info rooms for speakers, sponsors, attendees, etc.
Expand Down Expand Up @@ -198,6 +211,7 @@ rooms:
Please note, the SeaGL Code of Conduct is in effect and can be found here: https://seagl.org/code_of_conduct
SeaGL2024-Restricted:
tag: seagl2024-restricted
avatar: cog
name: Restricted
topic: >-
Rooms that are only available to SeaGL 2024 staff and volunteers
Expand Down Expand Up @@ -228,13 +242,15 @@ rooms:
control: true
SeaGL2024-UpcomingSessions:
tag: seagl2024-upcoming-sessions
avatar: clock
name: Upcoming Sessions
topic: >-
Sessions which have not yet happened—join ahead of time and chat with other interested attendees!
· Please note, the SeaGL Code of Conduct is in effect in all conference spaces.
children: FUTURE_SESSIONS
SeaGL2024-CompletedSessions:
tag: seagl2024-completed-sessions
avatar: moon
name: Completed Sessions
topic: >-
Sessions that have been wrapped up!
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Reconciler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,8 @@ export default class extends Module {
}

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

private resolveTag(tag: string): string | undefined {
Expand Down

0 comments on commit fc651e2

Please sign in to comment.