F
This commit is contained in:
parent
38556315e3
commit
dcf3badac4
4
.env
4
.env
@ -1,5 +1,5 @@
|
|||||||
API_ID=1025907
|
API_ID=1025907
|
||||||
API_HASH=452b0359b988148995f22ff0f4229750
|
API_HASH=452b0359b988148995f22ff0f4229750
|
||||||
VERSION=0.9.1
|
VERSION=0.9.1
|
||||||
VERSION_FULL=0.9.1 (17)
|
VERSION_FULL=0.9.1 (18)
|
||||||
BUILD=17
|
BUILD=18
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
### 0.9.1 (17)
|
### 0.9.1 (18)
|
||||||
* Added group members online counter.
|
* Added group members online counter.
|
||||||
* Added description of pinned message in its service notification.
|
* Added description of pinned message in its service notification.
|
||||||
* Improved profile avatar loading.
|
* Improved profile avatar loading.
|
||||||
|
@ -2699,7 +2699,8 @@ export class AppMessagesManager {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if('media' in message) {
|
if((message as Message.message).media) {
|
||||||
|
assumeType<Message.message>(message);
|
||||||
let usingFullAlbum = true;
|
let usingFullAlbum = true;
|
||||||
if(message.grouped_id) {
|
if(message.grouped_id) {
|
||||||
if(usingMids) {
|
if(usingMids) {
|
||||||
@ -2796,8 +2797,8 @@ export class AppMessagesManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if('action' in message) {
|
if((message as Message.messageService).action) {
|
||||||
const actionWrapped = this.wrapMessageActionTextNew(message, plain);
|
const actionWrapped = this.wrapMessageActionTextNew((message as Message.messageService), plain);
|
||||||
if(actionWrapped) {
|
if(actionWrapped) {
|
||||||
addPart(undefined, actionWrapped);
|
addPart(undefined, actionWrapped);
|
||||||
}
|
}
|
||||||
@ -5011,7 +5012,8 @@ export class AppMessagesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set cached url to media
|
// set cached url to media
|
||||||
if('media' in message) {
|
if((message as Message.message).media) {
|
||||||
|
assumeType<Message.message>(message);
|
||||||
const {photo: newPhoto, document: newDoc} = message.media as any;
|
const {photo: newPhoto, document: newDoc} = message.media as any;
|
||||||
if(newPhoto) {
|
if(newPhoto) {
|
||||||
const photo = appPhotosManager.getPhoto('' + tempId);
|
const photo = appPhotosManager.getPhoto('' + tempId);
|
||||||
@ -5653,7 +5655,7 @@ export class AppMessagesManager {
|
|||||||
referenceDatabase.deleteContext(smth.file_reference, {type: 'message', peerId: message.peerId, messageId: message.mid});
|
referenceDatabase.deleteContext(smth.file_reference, {type: 'message', peerId: message.peerId, messageId: message.mid});
|
||||||
}
|
}
|
||||||
|
|
||||||
if('webpage' in media) {
|
if('webpage' in media && media.webpage) {
|
||||||
const isScheduled = this.getScheduledMessagesStorage(message.peerId) === storage;
|
const isScheduled = this.getScheduledMessagesStorage(message.peerId) === storage;
|
||||||
const messageKey = appWebPagesManager.getMessageKeyForPendingWebPage(message.peerId, message.mid, isScheduled);
|
const messageKey = appWebPagesManager.getMessageKeyForPendingWebPage(message.peerId, message.mid, isScheduled);
|
||||||
appWebPagesManager.deleteWebPageFromPending(media.webpage, messageKey);
|
appWebPagesManager.deleteWebPageFromPending(media.webpage, messageKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user