Skip to content

Commit 7d6478e

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 d000002 commit 7d6478e

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
@@ -213,12 +213,8 @@ async def unmute(self, user_id: str) -> StreamResponse:
213213
async def pin(self, user_id: str) -> StreamResponse:
214214
if not user_id:
215215
raise StreamChannelException("user_id must not be empty")
216-
217-
payload = {
218-
"set": {
219-
"pinned": True
220-
}
221-
}
216+
217+
payload = {"set": {"pinned": True}}
222218
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
223219

224220
async def unpin(self, user_id: str) -> StreamResponse:

0 commit comments

Comments
 (0)