Browse Source

follow-up

master
Eduard Kuzmenko 2 years ago
parent
commit
dfcc4d11a5
  1. 1
      src/components/call/index.ts
  2. 5
      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'; @@ -10,6 +10,7 @@ import {attachClickEvent} from '../../helpers/dom/clickEvent';
import ControlsHover from '../../helpers/dom/controlsHover';
import findUpClassName from '../../helpers/dom/findUpClassName';
import {addFullScreenListener, cancelFullScreen, isFullScreen, requestFullScreen} from '../../helpers/dom/fullScreen';
import replaceContent from '../../helpers/dom/replaceContent';
import MovablePanel from '../../helpers/movablePanel';
import onMediaLoad from '../../helpers/onMediaLoad';
import themeController from '../../helpers/themeController';

5
src/components/chat/bubbles.ts

@ -1575,11 +1575,12 @@ export default class ChatBubbles { @@ -1575,11 +1575,12 @@ export default class ChatBubbles {
if(target.classList.contains('is-receipt-link')) {
const message = await this.managers.appMessagesManager.getMessageByPeer(peerId.toPeerId(), +mid);
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 {
this.chat.appImManager.setInnerPeer({
peerId: peerId.toPeerId(),
peerId: peerId.toPeerId(),
lastMsgId: +mid
});
}

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

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

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

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

Loading…
Cancel
Save