Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.33k stars 495 forks source link

Chat ID remains in the address bar after closing current chat with <Esc> #217

Closed Ajaxy closed 1 year ago

iib0011 commented 1 year ago

Can't reproduce

Ajaxy commented 1 year ago

So you have to open a chat, make sure the ID appears in the location hash, refresh the page and then exit the chat with \ – the location hash will not go away.

iib0011 commented 1 year ago

@Ajaxy In which function is the location hash change done? Also, I looked at all the addActionHandler('openChat'). And one of them doesn't run when we call openChat from getActions(). Can you explain a little bit?

Ajaxy commented 1 year ago

In which function is the location hash change done?

src/routing.ts

And one of them doesn't run when we call openChat from getActions(). Can you explain a little bit?

That is weird. Which one?

iib0011 commented 1 year ago

None of the functions in this file is invoked after pressing Esc. Even in the case where it works, ie no chatId in the first request. The action listeners are working fine. I made a mistake while debugging.

Ajaxy commented 1 year ago

We managed to fix that on our side.