Skip to content

Commit 49ec901

Browse files
committed
fix: set the state parameter to true while querying a channel
1 parent b205b63 commit 49ec901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

channel.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ func (q QueryResponse) updateChannel(ch *Channel) {
198198

199199
// Query makes request to channel api and updates channel internal state.
200200
func (ch *Channel) Query(ctx context.Context, q *QueryRequest) (*QueryResponse, error) {
201+
if q != nil {
202+
q.State = true
203+
}
204+
201205
p := path.Join("channels", url.PathEscape(ch.Type), url.PathEscape(ch.ID), "query")
202206

203207
var resp QueryResponse

0 commit comments

Comments
 (0)