Skip to content

Commit e0890c9

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

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

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

0 commit comments

Comments
 (0)