Skip to content

Commit d000002

Browse files
fix: update stream_chat/channel.py
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5500ea4 commit d000002

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

stream_chat/channel.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,8 @@ def pin(self, user_id: str) -> StreamResponse:
225225
def unpin(self, user_id: str) -> StreamResponse:
226226
if not user_id:
227227
raise StreamChannelException("user_id must not be empty")
228-
229-
payload = {
230-
"set": {
231-
"pinned": False
232-
}
233-
}
228+
229+
payload = {"set": {"pinned": False}}
234230
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
235231

236232
def archive(self, user_id: str) -> StreamResponse:

0 commit comments

Comments
 (0)