Skip to content

Commit

Permalink
fix nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Aug 31, 2024
1 parent 5b655f5 commit 2f62953
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/models/bkroom_end.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ func (m *BreakoutRoomModel) performPostHookTask(roomId string) error {
if err != nil {
return err
}
if meta == nil {
// indicating room was ended
return nil
}

meta.RoomFeatures.BreakoutRoomFeatures.IsActive = false
err = m.natsService.UpdateAndBroadcastRoomMetadata(roomId, meta)
if err != nil {
Expand Down

0 comments on commit 2f62953

Please sign in to comment.