telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.39k stars 5.25k forks source link

Set emoji status Telegram Desktop BUG MINI APPS #28674

Closed danyarubtsov closed 5 days ago

danyarubtsov commented 6 days ago

Steps to reproduce

  1. Call set emoji status, 2. Tap to cross icon (right up), 3. Try call set emoji status again, 4. Check console with error

Expected behaviour

After we close set emoji status modal page with cross icon - we can open that again, without errors. And we need event, like from "cancel" button

Actual behaviour

i use bot @asmico_new_attach_bot for testing new features. When i open "set emoji modal", and close by right bottom button (cancel) - i have event "emoji_status_failed". But if i try to close this page with right-up cross, i dont have any events, and if i try to open emoji-setting again, i have error "WebAppEmojiStatusRequested Emoji status is already requested"

Operating system

windows 10

Version of Telegram Desktop

5.8.1

Installation source

Static binary from official website

Crash ID

No response

Logs

postEvent web_app_open_popup {message: 'emojiStatusFailed: USER_DECLINED', buttons: Array(1)}buttons: Array(1)0: {id: '', type: 'close'}length: 1[[Prototype]]: Array(0)message: "emojiStatusFailed: USER_DECLINED"[[Prototype]]: Object
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent popup_closed {button_id: ''}
telegram-web-app-beta.js?80:135 [Telegram.WebView] > postEvent web_app_set_emoji_status {custom_emoji_id: '5213305508034783384'}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:162 [Telegram.WebView] < receiveEvent viewport_changed {height: 568, is_state_stable: true, is_expanded: true}
telegram-web-app-beta.js?80:3112  [Telegram.WebApp] Emoji status is already requested
WebApp.setEmojiStatus @ telegram-web-app-beta.js?80:3112
setEmojiStatus @ webappdemo.js?46:655
(анонимный) @ VM62:1
telegram-web-app-beta.js?80:3113  Uncaught Error: WebAppEmojiStatusRequested
danyarubtsov commented 6 days ago

https://bugs.telegram.org/c/45691