fix(core): fixed sending with self peer

This commit is contained in:
alina 🌸 2024-11-27 20:47:02 +03:00
parent 2b0d4d99aa
commit 67758ca246
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -10,7 +10,7 @@ import { _maybeInvokeWithBusinessConnection } from './_business-connection.js'
import { _mapTypingStatus } from './send-typing.js'
export function _getTypingTimerId(peer: tl.TypeInputPeer, businessId?: string): string {
let base = `typing:${getMarkedPeerId(peer)}`
let base = `typing:${peer._ === 'inputPeerSelf' ? 'self' : getMarkedPeerId(peer)}`
if (businessId) base += `:b${businessId}`
return base