Hide forward button in avatar media viewer

This commit is contained in:
Eduard Kuzmenko 2021-07-22 14:29:41 +03:00
parent 7e0112ead6
commit 364a7e5ba8

View File

@ -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);