Skip to content

Commit 807fc54

Browse files
authored
Merge pull request #2631 from traPtitech/fix/typeInQallRoomStateChangeHandler
fix: correct type assertion for roomStates in qallRoomStateChangedHandler
2 parents 1b8b1cd + 075257a commit 807fc54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

service/notification/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ func qallRoomStateChangedHandler(ns *Service, ev hub.Message) {
613613
broadcast(ns,
614614
"QALL_ROOM_STATE_CHANGED",
615615
map[string]interface{}{
616-
"roomStates": ev.Fields["roomStates"].(qall.RoomWithParticipants),
616+
"roomStates": ev.Fields["roomStates"].([]qall.RoomWithParticipants),
617617
},
618618
)
619619
}

0 commit comments

Comments
 (0)