Skip to content

Commit

Permalink
fix: set the state parameter to true while querying a channel
Browse files Browse the repository at this point in the history
  • Loading branch information
devinwang committed Jun 17, 2024
1 parent b205b63 commit 49ec901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ func (q QueryResponse) updateChannel(ch *Channel) {

// Query makes request to channel api and updates channel internal state.
func (ch *Channel) Query(ctx context.Context, q *QueryRequest) (*QueryResponse, error) {
if q != nil {
q.State = true
}

p := path.Join("channels", url.PathEscape(ch.Type), url.PathEscape(ch.ID), "query")

var resp QueryResponse
Expand Down

0 comments on commit 49ec901

Please sign in to comment.