Skip to content

Commit 97cb3ee

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 43da753 commit 97cb3ee

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

stream_chat/async_chat/channel.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,13 @@ async def archive(self, user_id: str) -> StreamResponse:
238238
async def unarchive(self, user_id: str) -> StreamResponse:
239239
if not user_id:
240240
raise StreamChannelException("user_id must not be empty")
241-
242-
payload = {
243-
"set": {
244-
"archived": False
245-
}
246-
}
241+
242+
payload = {"set": {"archived": False}}
247243
return self.client.patch(f"{self.url}/member/{user_id}", data=payload)
248244

249-
async def update_member_partial(self, user_id: str, to_set: Dict = None, to_unset: Iterable[str] = None) -> Union[StreamResponse, Awaitable[StreamResponse]]:
245+
async def update_member_partial(
246+
self, user_id: str, to_set: Dict = None, to_unset: Iterable[str] = None
247+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
250248
if not user_id:
251249
raise StreamChannelException("user_id must not be empty")
252250

0 commit comments

Comments
 (0)