Browse Source

follow-up

master
Eduard Kuzmenko 2 years ago
parent
commit
dfcc4d11a5
  1. 1
      src/components/call/index.ts
  2. 3
      src/components/chat/bubbles.ts
  3. 1
      src/components/sidebarLeft/tabs/newChannel.ts
  4. 1
      src/components/sidebarLeft/tabs/newGroup.ts

1
src/components/call/index.ts

@ -10,6 +10,7 @@ import {attachClickEvent} from '../../helpers/dom/clickEvent';
import ControlsHover from '../../helpers/dom/controlsHover'; import ControlsHover from '../../helpers/dom/controlsHover';
import findUpClassName from '../../helpers/dom/findUpClassName'; import findUpClassName from '../../helpers/dom/findUpClassName';
import {addFullScreenListener, cancelFullScreen, isFullScreen, requestFullScreen} from '../../helpers/dom/fullScreen'; import {addFullScreenListener, cancelFullScreen, isFullScreen, requestFullScreen} from '../../helpers/dom/fullScreen';
import replaceContent from '../../helpers/dom/replaceContent';
import MovablePanel from '../../helpers/movablePanel'; import MovablePanel from '../../helpers/movablePanel';
import onMediaLoad from '../../helpers/onMediaLoad'; import onMediaLoad from '../../helpers/onMediaLoad';
import themeController from '../../helpers/themeController'; import themeController from '../../helpers/themeController';

3
src/components/chat/bubbles.ts

@ -1575,7 +1575,8 @@ export default class ChatBubbles {
if(target.classList.contains('is-receipt-link')) { if(target.classList.contains('is-receipt-link')) {
const message = await this.managers.appMessagesManager.getMessageByPeer(peerId.toPeerId(), +mid); const message = await this.managers.appMessagesManager.getMessageByPeer(peerId.toPeerId(), +mid);
if(message) { if(message) {
new PopupPayment(message as Message.message, this.peerId, +bubble.dataset.mid); const inputInvoice = await this.managers.appPaymentsManager.getInputInvoiceByPeerId(this.peerId, +bubble.dataset.mid);
new PopupPayment(message as Message.message, inputInvoice);
} }
} else { } else {
this.chat.appImManager.setInnerPeer({ this.chat.appImManager.setInnerPeer({

1
src/components/sidebarLeft/tabs/newChannel.ts

@ -13,6 +13,7 @@ import AppAddMembersTab from './addMembers';
import {_i18n} from '../../../lib/langPack'; import {_i18n} from '../../../lib/langPack';
import ButtonCorner from '../../buttonCorner'; import ButtonCorner from '../../buttonCorner';
import appImManager from '../../../lib/appManagers/appImManager'; import appImManager from '../../../lib/appManagers/appImManager';
import {attachClickEvent} from '../../../helpers/dom/clickEvent';
export default class AppNewChannelTab extends SliderSuperTab { export default class AppNewChannelTab extends SliderSuperTab {
private uploadAvatar: () => Promise<InputFile> = null; private uploadAvatar: () => Promise<InputFile> = null;

1
src/components/sidebarLeft/tabs/newGroup.ts

@ -14,6 +14,7 @@ import I18n from '../../../lib/langPack';
import ButtonCorner from '../../buttonCorner'; import ButtonCorner from '../../buttonCorner';
import getUserStatusString from '../../wrappers/getUserStatusString'; import getUserStatusString from '../../wrappers/getUserStatusString';
import appImManager from '../../../lib/appManagers/appImManager'; import appImManager from '../../../lib/appManagers/appImManager';
import {attachClickEvent} from '../../../helpers/dom/clickEvent';
interface OpenStreetMapInterface { interface OpenStreetMapInterface {
place_id?: number; place_id?: number;

Loading…
Cancel
Save