From f70993131a103728b21474ad2df822d041e88b57 Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Thu, 19 Sep 2024 01:22:51 +0300 Subject: [PATCH] fix(core)!: ChatJoinRequest#chatId not marked --- .../core/src/highlevel/types/updates/chat-join-request.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/highlevel/types/updates/chat-join-request.ts b/packages/core/src/highlevel/types/updates/chat-join-request.ts index 7f88e292..46e9702f 100644 --- a/packages/core/src/highlevel/types/updates/chat-join-request.ts +++ b/packages/core/src/highlevel/types/updates/chat-join-request.ts @@ -1,6 +1,6 @@ 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 { memoizeGetters } from '../../utils/memoize.js' import type { PeersIndex } from '../peers/index.js' @@ -23,10 +23,10 @@ export class ChatJoinRequestUpdate { // recent requesters, not the chat /** - * ID of the chat/channel + * Marked ID of the chat/channel */ get chatId(): number { - return getBarePeerId(this.raw.peer) + return getMarkedPeerId(this.raw.peer) } /**