Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
5 stars 0 forks source link

Events `web_app_set_header_color` and `web_app_set_background_color` have no effect #5

Open heyqbnk opened 1 year ago

heyqbnk commented 1 year ago

Describe the bug No effect when posting web_app_set_header_color and web_app_set_background_color events. There are no visual changes and changes in DOM.

To Reproduce Steps to reproduce the behavior:

  1. Open Sandbox
  2. Open console
  3. To test header color change, try both of the scripts:
    WebView.postEvent('web_app_set_header_color', {color_key: 'secondary_bg_color'})

    or

    WebView.postEvent('web_app_set_header_color', {color_key: 'bg_color'})
  4. To test background color change, try this script:
    WebView.postEvent('web_app_set_background_color', {color: '#ffffff'})
  5. See no changes in header and background colors

Expected behavior Colors change right after event posting.

heyqbnk commented 1 year ago

tdesktop issue: https://github.com/telegramdesktop/tdesktop/issues/25765 macos issue: https://github.com/overtake/TelegramSwift/issues/918

samyarkd commented 1 month ago

hi, why is the issue closed ?

heyqbnk commented 1 month ago

hi, why is the issue closed ?

It is open

samyarkd commented 1 month ago

hi, why is the issue closed ?

It is open

On telegram desktop it's been closed without any response from them.

https://github.com/telegramdesktop/tdesktop/issues/25765