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

feat(apps/phone): when creating a conversation, redirect to it if exists #1066

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GiroudMathias
Copy link

@GiroudMathias GiroudMathias commented Aug 30, 2023

Pull Request Description

Somes changes and optimisations:

  • When creating a conversation, redirect to it if exists
  • Message's search in name and number

Pull Request Checklist:

  • Have you followed the guidelines in our Contributing document and Code of Conduct?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you built and tested NPWD in-game after the relevant change?

Copy link
Author

@GiroudMathias GiroudMathias left a comment

Choose a reason for hiding this comment

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

On message, search user with number or contact name

@@ -64,6 +64,7 @@ class _MessagesService {
return resp({
status: 'error',
errorMsg: 'MESSAGES.FEEDBACK.MESSAGE_CONVERSATION_DUPLICATE',
data: { id: await this.messagesDB.getConversationId(conversationList) }
Copy link
Member

Choose a reason for hiding this comment

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

Please follow the pattern and call async function outside of the resp function

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