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

[Bug]: requestEmojiStatusAccess on MAC and IOS devices throws an error #652

Open
xndrpr opened this issue Feb 3, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@xndrpr
Copy link

xndrpr commented Feb 3, 2025

Telegram Application

Telegram for iOS, Telegram for macOS

Describe the Bug

When I try to use the example of requestEmojiStatusAccess usage:

Error:

[Error] Unhandled Promise Rejection: TypedError: Emoji status access request is currently in progress (x24)
[Error] Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'e.status')

I think that the error is coming from packages/sdk/src/scopes/utilities/emoji-status/requestEmojiStatusAccess.ts line 13:

 return request(METHOD, 'emoji_status_access_requested', options).then(d => d.status);

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Code:

(async () => {
    if (requestEmojiStatusAccess.isAvailable()) {
        try {
            const status = requestEmojiStatusAccess();
            console.log(status);
        } catch (error) {
            console.log(error);
        }
    }
})();

Expected Behavior

Expected behavior is to return a status.

@xndrpr xndrpr added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants