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
|
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');
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-buttons {
|
&-buttons {
|
||||||
flex-direction: row;
|
|
||||||
order: 2;
|
order: 2;
|
||||||
margin-right: -2px;
|
margin-right: -2px;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user