Fix missing 'pFlags' in some places
This commit is contained in:
parent
0d8d776e52
commit
afa535b88c
|
@ -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');
|
||||
|
|
|
@ -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: {}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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: {}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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: {}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ export default function getPhotoMediaInput(photo: MyPhoto): InputMedia.inputMedi
|
|||
return {
|
||||
_: 'inputMediaPhoto',
|
||||
id: getPhotoInput(photo),
|
||||
ttl_seconds: 0
|
||||
ttl_seconds: 0,
|
||||
pFlags: {}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ export const accountPassword: AccountPassword.accountPassword = {
|
|||
srp_id,
|
||||
srp_B,
|
||||
secure_random,
|
||||
pFlags: {},
|
||||
|
||||
new_algo: null,
|
||||
new_secure_algo: null
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue