Skip to content

Commit 43da753

Browse files
fix: update stream_chat/async_chat/channel.py
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7d6478e commit 43da753

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

stream_chat/async_chat/channel.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,8 @@ async def pin(self, user_id: str) -> StreamResponse:
220220
async def unpin(self, user_id: str) -> StreamResponse:
221221
if not user_id:
222222
raise StreamChannelException("user_id must not be empty")
223-
224-
payload = {
225-
"set": {
226-
"pinned": False
227-
}
228-
}
223+
224+
payload = {"set": {"pinned": False}}
229225
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
230226

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

0 commit comments

Comments
 (0)