Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sender_display_name in SendTypingNotification Operation #19760

Merged
merged 4 commits into from
Jul 13, 2021
Merged

Add sender_display_name in SendTypingNotification Operation #19760

merged 4 commits into from
Jul 13, 2021

Conversation

LuChen-Microsoft
Copy link
Member

No description provided.

@@ -242,6 +243,8 @@ async def send_typing_notification(
) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanted, you could use the * syntax:

async def send_typing_notification(
        self,
        *,
        sender_display_name: Optional[str] = None,
        **kwargs
    ) -> None:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the prefer format in async methods?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually, yes - it works better with intellisense.

@@ -4,6 +4,7 @@

### Added
- Added support to add `metadata` for `message`
- Added support to add `sender_display_name` for `SendTypingNotification`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SendTypingNotification -> ChatThreadClient.send_typing_notification

@annatisch
Copy link
Member

/azp run python - azure-communication-chat - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch annatisch merged commit 08e0f4d into Azure:main Jul 13, 2021
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Jul 16, 2021
)

* add displayname in send typing notification

* update changelog

* fix pylint

* fix review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants