|
|
@ -308,12 +308,13 @@ export class AppImManager { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Support old t.me/joinchat/asd and new t.me/+asd
|
|
|
|
this.addAnchorListener<{pathnameParams: ['joinchat', string]}>({ |
|
|
|
this.addAnchorListener<{pathnameParams: ['joinchat', string]}>({ |
|
|
|
name: 'joinchat', |
|
|
|
name: 'joinchat', |
|
|
|
callback: ({pathnameParams}) => { |
|
|
|
callback: ({pathnameParams}) => { |
|
|
|
const link: InternalLink = { |
|
|
|
const link: InternalLink = { |
|
|
|
_: INTERNAL_LINK_TYPE.JOIN_CHAT, |
|
|
|
_: INTERNAL_LINK_TYPE.JOIN_CHAT, |
|
|
|
invite: pathnameParams[1] |
|
|
|
invite: pathnameParams[1] || decodeURIComponent(pathnameParams[0]).slice(1) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
this.processInternalLink(link); |
|
|
|
this.processInternalLink(link); |
|
|
|