Browse Source

Forbid editing round video

master
morethanwords 4 years ago
parent
commit
9b54ce2905
  1. 6
      src/components/popups/datePicker.ts
  2. 2
      src/lib/appManagers/appMessagesManager.ts
  3. 1
      src/scss/partials/popups/_datePicker.scss

6
src/components/popups/datePicker.ts

@ -33,15 +33,15 @@ export default class PopupDatePicker extends PopupElement { @@ -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');

2
src/lib/appManagers/appMessagesManager.ts

@ -2612,7 +2612,7 @@ export class AppMessagesManager { @@ -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;
}

1
src/scss/partials/popups/_datePicker.scss

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

Loading…
Cancel
Save