Skip to content

Commit c15caeb

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

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
@@ -229,12 +229,8 @@ def unpin(self, user_id: str) -> StreamResponse:
229229
def archive(self, user_id: str) -> StreamResponse:
230230
if not user_id:
231231
raise StreamChannelException("user_id must not be empty")
232-
233-
payload = {
234-
"set": {
235-
"archived": True
236-
}
237-
}
232+
233+
payload = {"set": {"archived": True}}
238234
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
239235

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

0 commit comments

Comments
 (0)