fix(core)!: ChatJoinRequest#chatId not marked

This commit is contained in:
alina 🌸 2024-09-19 01:22:51 +03:00
parent 318dbd6548
commit f70993131a
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -1,6 +1,6 @@
import type { tl } from '@mtcute/tl' import type { tl } from '@mtcute/tl'
import { getBarePeerId } from '../../../utils/peer-utils.js' import { getMarkedPeerId } from '../../../utils/peer-utils.js'
import { makeInspectable } from '../../utils/index.js' import { makeInspectable } from '../../utils/index.js'
import { memoizeGetters } from '../../utils/memoize.js' import { memoizeGetters } from '../../utils/memoize.js'
import type { PeersIndex } from '../peers/index.js' import type { PeersIndex } from '../peers/index.js'
@ -23,10 +23,10 @@ export class ChatJoinRequestUpdate {
// recent requesters, not the chat // recent requesters, not the chat
/** /**
* ID of the chat/channel * Marked ID of the chat/channel
*/ */
get chatId(): number { get chatId(): number {
return getBarePeerId(this.raw.peer) return getMarkedPeerId(this.raw.peer)
} }
/** /**