From 364a7e5ba82cbbe8dccce7bb15e2e5b18a0e0609 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Thu, 22 Jul 2021 14:29:41 +0300 Subject: [PATCH] Hide forward button in avatar media viewer --- src/components/appMediaViewer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index 66b6f0bd..2afd3776 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -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);