Fix missing 'pFlags' in some places

This commit is contained in:
Eduard Kuzmenko 2023-02-01 17:44:53 +04:00
parent 0d8d776e52
commit afa535b88c
10 changed files with 20 additions and 11 deletions

View File

@ -3812,7 +3812,8 @@ export default class ChatBubbles {
if(bigEmojis === 1 && !messageMedia && sticker) {
messageMedia = {
_: 'messageMediaDocument',
document: sticker
document: sticker,
pFlags: {}
};
} else {
attachmentDiv = document.createElement('div');

View File

@ -132,9 +132,10 @@ export default class ReplyKeyboard extends DropdownHover {
}
}
private async getReplyMarkup() {
private async getReplyMarkup(): Promise<ReplyMarkup> {
return (await this.managers.appMessagesManager.getHistoryStorageTransferable(this.peerId)).replyMarkup ?? {
_: 'replyKeyboardHide'
_: 'replyKeyboardHide',
pFlags: {}
};
}

View File

@ -311,7 +311,8 @@ export default class PopupNewMedia extends PopupElement {
access_hash: 0,
date: 0,
dc_id: 0,
file_reference: []
file_reference: [],
pFlags: {}
};
const mediaSpoiler = await wrapMediaSpoiler({

View File

@ -124,7 +124,8 @@ export default class AppBackgroundColorTab extends SliderSuperTab {
pFlags: {},
settings: {
_: 'wallPaperSettings',
background_color: parseInt(hex.slice(1), 16)
background_color: parseInt(hex.slice(1), 16),
pFlags: {}
}
};

View File

@ -368,8 +368,8 @@ export class AppDocsManager extends AppManager {
file: inputFile,
mime_type: file.type,
settings: {
_: 'wallPaperSettings'
_: 'wallPaperSettings',
pFlags: {}
}
}).then((wallPaper) => {
assumeType<WallPaper.wallPaper>(wallPaper);

View File

@ -344,7 +344,8 @@ export class AppReactionsManager extends AppManager {
const peerReaction: MessagePeerReaction = {
_: 'messagePeerReaction',
reaction,
peer_id: this.appPeersManager.getOutputPeer(myPeerId)
peer_id: this.appPeersManager.getOutputPeer(myPeerId),
pFlags: {}
};
if(!this.appPeersManager.isMegagroup(peerId) && false) {

View File

@ -15,6 +15,7 @@ export default function getMediaInput(doc: Document.document): InputMedia.inputM
access_hash: doc.access_hash,
file_reference: doc.file_reference
},
ttl_seconds: 0
ttl_seconds: 0,
pFlags: {}
};
}

View File

@ -12,6 +12,7 @@ export default function getPhotoMediaInput(photo: MyPhoto): InputMedia.inputMedi
return {
_: 'inputMediaPhoto',
id: getPhotoInput(photo),
ttl_seconds: 0
ttl_seconds: 0,
pFlags: {}
};
}

View File

@ -44,6 +44,7 @@ export const accountPassword: AccountPassword.accountPassword = {
srp_id,
srp_B,
secure_random,
pFlags: {},
new_algo: null,
new_secure_algo: null

View File

@ -156,7 +156,8 @@ const onFirstMount = () => {
api_id: App.id,
api_hash: App.hash,
settings: {
_: 'codeSettings' // that's how we sending Type
_: 'codeSettings', // that's how we sending Type
pFlags: {}
}
// lang_code: navigator.language || 'en'
}).then((code) => {