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

Created get_first_chat and search_chat_by_name methods! #60

Merged
merged 3 commits into from
Jun 9, 2022

Conversation

euriconicacio
Copy link
Collaborator

@euriconicacio euriconicacio commented Jun 7, 2022

As a resolution to issue #48 and further adventures, we are creating the following methods:

  • get_first_chat(self, ignore_pinned=True) method: opens the first chat on the left list. Since they are out of order in the code itself, the technique was to hit the search field and press the down arrow. This method receives as an argument ignore_pinned, a boolean value that indicates if pinned chats should be ignored when retrieving the first one (default value is True). Works like a charm.

  • search_chat_by_name(self, query: str) method: searches for the first chat containing the query parameter - not case sensitive.

Enjoy!

@euriconicacio
Copy link
Collaborator Author

@Kalebu, could you please 👍 this? Some other developments/solutions may depend on it. Thanks!

@euriconicacio euriconicacio changed the title Created get_first_chat method Created couple handy methods! Jun 9, 2022
@euriconicacio euriconicacio changed the title Created couple handy methods! Created get_first_chat and search_chat_by_name methods! Jun 9, 2022
@Kalebu
Copy link
Owner

Kalebu commented Jun 9, 2022

Hi @euriconicacio

Thanks for taking your time contributing to this package

Can you also add docs about the newly implemented methods to the README.md

@Kalebu Kalebu merged commit 55bf1aa into Kalebu:main Jun 9, 2022
@euriconicacio
Copy link
Collaborator Author

Absolutely @Kalebu, adding them right now!

@euriconicacio euriconicacio deleted the get_first_chat branch June 9, 2022 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants