Skip to content

Commit bd027ad

Browse files
authored
Merge pull request #7 from icegriffinguru/main
sort message types for a clear view (Update JoinRoomForm.tsx)
2 parents 7852eaf + 0935014 commit bd027ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/JoinRoomForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export function JoinRoomForm ({
153153
onDisconnection(room.sessionId));
154154

155155
room.onMessage("__playground_message_types", (types) => {
156+
// sort message types for a clear view
157+
types.sort();
156158
// global message types by room name
157159
messageTypesByRoom[room.name] = types;
158160

0 commit comments

Comments
 (0)