Skip to content

Commit

Permalink
add support for undelete in async client
Browse files Browse the repository at this point in the history
  • Loading branch information
akupila committed Apr 9, 2024
1 parent ab77336 commit ee9277f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stream_chat/async_chat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ async def update_message_partial(
async def delete_message(self, message_id: str, **options: Any) -> StreamResponse:
return await self.delete(f"messages/{message_id}", options)

def undelete_message(self, message_id: str, user_id: str) -> StreamResponse:
return await self.post(f"messages/{message_id}/undelete", data={"user": user_id})

async def get_message(self, message_id: str) -> StreamResponse:
return await self.get(f"messages/{message_id}")

Expand Down

0 comments on commit ee9277f

Please sign in to comment.