Forbid editing round video
This commit is contained in:
parent
10fbde2bc7
commit
9b54ce2905
@ -33,15 +33,15 @@ export default class PopupDatePicker extends PopupElement {
|
||||
showOverflowMonths: true
|
||||
}> & PopupOptions = {}) {
|
||||
super('popup-date-picker', options.noButtons ? [] : [{
|
||||
text: 'CANCEL',
|
||||
isCancel: true
|
||||
}, {
|
||||
text: 'JUMP TO DATE',
|
||||
callback: () => {
|
||||
if(this.onPick) {
|
||||
this.onPick(this.selectedDate.getTime() / 1000 | 0);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
text: 'CANCEL',
|
||||
isCancel: true
|
||||
}], {body: true, ...options});
|
||||
|
||||
this.minDate = options.minDate || new Date('2013-08-01T00:00:00');
|
||||
|
@ -2612,7 +2612,7 @@ export class AppMessagesManager {
|
||||
|
||||
if(message.media &&
|
||||
message.media._ == 'messageMediaDocument' &&
|
||||
message.media.document.sticker) {
|
||||
(message.media.document.sticker || message.media.document.type === 'round')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,6 @@
|
||||
}
|
||||
|
||||
&-buttons {
|
||||
flex-direction: row;
|
||||
order: 2;
|
||||
margin-right: -2px;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user