Upload avatar fix
Name in reply
This commit is contained in:
parent
2ecce82a4d
commit
6fd10adaef
@ -1,4 +1,5 @@
|
||||
import resizeableImage from "../lib/cropper";
|
||||
import appDownloadManager from "../lib/appManagers/appDownloadManager";
|
||||
|
||||
export class PopupAvatar {
|
||||
private container = document.getElementById('popup-avatar');
|
||||
@ -76,11 +77,7 @@ export class PopupAvatar {
|
||||
|
||||
private resolve() {
|
||||
this.onCrop(() => {
|
||||
//return apiFileManager.uploadFile(this.blob);
|
||||
return fetch('/upload', {
|
||||
method: 'POST',
|
||||
body: this.blob
|
||||
}).then(res => res.json());
|
||||
return appDownloadManager.upload(this.blob);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2610,7 +2610,7 @@ export class AppImManager {
|
||||
} else {
|
||||
if(message.reply_to_mid) {
|
||||
let originalMessage = appMessagesManager.getMessage(message.reply_to_mid);
|
||||
let originalPeerTitle = appPeersManager.getPeerTitle(originalMessage.fromID, true) || '';
|
||||
let originalPeerTitle = appPeersManager.getPeerTitle(originalMessage.fromID || originalMessage.fwdFromID, true) || '';
|
||||
|
||||
/////////this.log('message to render reply', originalMessage, originalPeerTitle, bubble, message);
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { cancelEvent, whichChild } from "./utils";
|
||||
import { touchSupport } from "./config";
|
||||
|
||||
export class ProgressLine {
|
||||
public container: HTMLDivElement;
|
||||
@ -369,7 +370,9 @@ export default class VideoPlayer {
|
||||
});
|
||||
|
||||
video.addEventListener('click', () => {
|
||||
this.togglePlay();
|
||||
if(!touchSupport) {
|
||||
this.togglePlay();
|
||||
}
|
||||
});
|
||||
|
||||
/* player.addEventListener('click', (e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user