Browse Source

Hide forward button in avatar media viewer

master
Eduard Kuzmenko 3 years ago
parent
commit
364a7e5ba8
  1. 2
      src/components/appMediaViewer.ts

2
src/components/appMediaViewer.ts

@ -1492,6 +1492,8 @@ export default class AppMediaViewer extends AppMediaViewerBase<'caption', 'delet @@ -1492,6 +1492,8 @@ export default class AppMediaViewer extends AppMediaViewerBase<'caption', 'delet
const fromId = message.fromId;
const media = this.getMediaFromMessage(message);
this.buttons.forward.classList.toggle('hide', message._ === 'messageService');
this.currentMessageId = mid;
this.currentPeerId = message.peerId;
const promise = super._openMedia(media, message.date, fromId, fromRight, target, reverse, prevTargets, nextTargets, needLoadMore);

Loading…
Cancel
Save