Fix sending photos
Fix modifying global notification settings
This commit is contained in:
parent
564f7240d3
commit
8189563843
|
@ -594,7 +594,7 @@ export default class PopupNewMedia extends PopupElement {
|
|||
} else {
|
||||
const img = new Image();
|
||||
itemDiv.append(img);
|
||||
const url = await apiManagerProxy.invoke('createObjectURL', file);
|
||||
const url = params.objectURL = await apiManagerProxy.invoke('createObjectURL', file);
|
||||
|
||||
await renderImageFromUrlPromise(img, url);
|
||||
const mimeType = params.file.type;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import Row from '../../row';
|
||||
import CheckboxField from '../../checkboxField';
|
||||
import {InputNotifyPeer, Update} from '../../../layer';
|
||||
import {InputNotifyPeer, InputPeerNotifySettings, Update} from '../../../layer';
|
||||
import {SliderSuperTabEventable} from '../../sliderTab';
|
||||
import rootScope from '../../../lib/rootScope';
|
||||
import {LangPackKey} from '../../../lib/langPack';
|
||||
|
@ -71,10 +71,11 @@ export default class AppNotificationsTab extends SliderSuperTabEventable {
|
|||
return;
|
||||
}
|
||||
|
||||
const inputSettings: any = copy(notifySettings);
|
||||
const inputSettings: InputPeerNotifySettings = copy(notifySettings) as any;
|
||||
inputSettings._ = 'inputPeerNotifySettings';
|
||||
inputSettings.mute_until = mute ? MUTE_UNTIL : 0;
|
||||
inputSettings.show_previews = showPreviews;
|
||||
delete inputSettings.flags;
|
||||
|
||||
this.managers.appNotificationsManager.updateNotifySettings(inputNotifyPeer, inputSettings);
|
||||
}, {once: true});
|
||||
|
|
|
@ -251,7 +251,7 @@ $btn-menu-z-index: 4;
|
|||
font-weight: 500;
|
||||
transform: scale(1);
|
||||
|
||||
.tgico-char {
|
||||
&.tgico-char:before {
|
||||
width: var(--icon-size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue