Skip to content

Add tg contact if it is required - #436

Merged
aplatoff merged 2 commits into
mainfrom
tg-add-contact
Dec 1, 2021
Merged

Add tg contact if it is required#436
aplatoff merged 2 commits into
mainfrom
tg-add-contact

Conversation

@sumboid

@sumboid sumboid commented Nov 30, 2021

Copy link
Copy Markdown
Contributor

This PR is related to https://github.com/hcengineering/telegram/pull/9 so ideally it should be applied after

})
})

if (res.status === 400 && tryCount === 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we need try count? May be we can just check err.code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure how code may help, it is just a way to exit recursion. Let's call it boolean isRetry until we add more complex retrying logic.

Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
@aplatoff
aplatoff merged commit 047815f into main Dec 1, 2021
@aplatoff
aplatoff deleted the tg-add-contact branch December 1, 2021 11:12
MichaelUray pushed a commit to MichaelUray/huly-platform that referenced this pull request Jul 9, 2026
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
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.

3 participants