Skip to content

Commit 0a30e02

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

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

stream_chat/channel.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,13 @@ def archive(self, user_id: str) -> StreamResponse:
236236
def unarchive(self, user_id: str) -> StreamResponse:
237237
if not user_id:
238238
raise StreamChannelException("user_id must not be empty")
239-
240-
payload = {
241-
"set": {
242-
"archived": False
243-
}
244-
}
239+
240+
payload = {"set": {"archived": False}}
245241
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
246242

247-
def update_member_partial(self, user_id: str, to_set: Dict = None, to_unset: Iterable[str] = None) -> Union[StreamResponse, Awaitable[StreamResponse]]:
243+
def update_member_partial(
244+
self, user_id: str, to_set: Dict = None, to_unset: Iterable[str] = None
245+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
248246
if not user_id:
249247
raise StreamChannelException("user_id must not be empty")
250248

0 commit comments

Comments
 (0)