Forbid editing round video

This commit is contained in:
morethanwords 2021-01-12 13:59:34 +04:00
parent 10fbde2bc7
commit 9b54ce2905
3 changed files with 4 additions and 5 deletions

View File

@ -33,15 +33,15 @@ export default class PopupDatePicker extends PopupElement {
showOverflowMonths: true showOverflowMonths: true
}> & PopupOptions = {}) { }> & PopupOptions = {}) {
super('popup-date-picker', options.noButtons ? [] : [{ super('popup-date-picker', options.noButtons ? [] : [{
text: 'CANCEL',
isCancel: true
}, {
text: 'JUMP TO DATE', text: 'JUMP TO DATE',
callback: () => { callback: () => {
if(this.onPick) { if(this.onPick) {
this.onPick(this.selectedDate.getTime() / 1000 | 0); this.onPick(this.selectedDate.getTime() / 1000 | 0);
} }
} }
}, {
text: 'CANCEL',
isCancel: true
}], {body: true, ...options}); }], {body: true, ...options});
this.minDate = options.minDate || new Date('2013-08-01T00:00:00'); this.minDate = options.minDate || new Date('2013-08-01T00:00:00');

View File

@ -2612,7 +2612,7 @@ export class AppMessagesManager {
if(message.media && if(message.media &&
message.media._ == 'messageMediaDocument' && message.media._ == 'messageMediaDocument' &&
message.media.document.sticker) { (message.media.document.sticker || message.media.document.type === 'round')) {
return false; return false;
} }

View File

@ -31,7 +31,6 @@
} }
&-buttons { &-buttons {
flex-direction: row;
order: 2; order: 2;
margin-right: -2px; margin-right: -2px;