Skip to content

Commit 2a3094c

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 97cb3ee commit 2a3094c

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
@@ -227,12 +227,8 @@ async def unpin(self, user_id: str) -> StreamResponse:
227227
async def archive(self, user_id: str) -> StreamResponse:
228228
if not user_id:
229229
raise StreamChannelException("user_id must not be empty")
230-
231-
payload = {
232-
"set": {
233-
"archived": True
234-
}
235-
}
230+
231+
payload = {"set": {"archived": True}}
236232
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
237233

238234
async def unarchive(self, user_id: str) -> StreamResponse:

0 commit comments

Comments
 (0)