mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Message: Fix error due to unsupported messages in albums (#2007)
This commit is contained in:
parent
84e8c06a63
commit
09c787c690
@ -349,7 +349,8 @@ const Message: FC<OwnProps & StateProps> = ({
|
||||
&& !forwardInfo.isLinkedChannelPost
|
||||
&& !customShape
|
||||
);
|
||||
const isAlbum = Boolean(album) && album!.messages.length > 1;
|
||||
const isAlbum = Boolean(album) && album!.messages.length > 1
|
||||
&& !album?.messages.some((msg) => Object.keys(msg.content).length === 0);
|
||||
const isInDocumentGroupNotFirst = isInDocumentGroup && !isFirstInDocumentGroup;
|
||||
const isInDocumentGroupNotLast = isInDocumentGroup && !isLastInDocumentGroup;
|
||||
const isContextMenuShown = contextMenuPosition !== undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user