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) { if(bigEmojis === 1 && !messageMedia && sticker) {
messageMedia = { messageMedia = {
_: 'messageMediaDocument', _: 'messageMediaDocument',
document: sticker document: sticker,
pFlags: {}
}; };
} else { } else {
attachmentDiv = document.createElement('div'); 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 ?? { 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, access_hash: 0,
date: 0, date: 0,
dc_id: 0, dc_id: 0,
file_reference: [] file_reference: [],
pFlags: {}
}; };
const mediaSpoiler = await wrapMediaSpoiler({ const mediaSpoiler = await wrapMediaSpoiler({

View File

@ -124,7 +124,8 @@ export default class AppBackgroundColorTab extends SliderSuperTab {
pFlags: {}, pFlags: {},
settings: { settings: {
_: 'wallPaperSettings', _: '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, file: inputFile,
mime_type: file.type, mime_type: file.type,
settings: { settings: {
_: 'wallPaperSettings' _: 'wallPaperSettings',
pFlags: {}
} }
}).then((wallPaper) => { }).then((wallPaper) => {
assumeType<WallPaper.wallPaper>(wallPaper); assumeType<WallPaper.wallPaper>(wallPaper);

View File

@ -344,7 +344,8 @@ export class AppReactionsManager extends AppManager {
const peerReaction: MessagePeerReaction = { const peerReaction: MessagePeerReaction = {
_: 'messagePeerReaction', _: 'messagePeerReaction',
reaction, reaction,
peer_id: this.appPeersManager.getOutputPeer(myPeerId) peer_id: this.appPeersManager.getOutputPeer(myPeerId),
pFlags: {}
}; };
if(!this.appPeersManager.isMegagroup(peerId) && false) { 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, access_hash: doc.access_hash,
file_reference: doc.file_reference 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 { return {
_: 'inputMediaPhoto', _: 'inputMediaPhoto',
id: getPhotoInput(photo), id: getPhotoInput(photo),
ttl_seconds: 0 ttl_seconds: 0,
pFlags: {}
}; };
} }

View File

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

View File

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