Skip to content

Commit 2c9e4a3

Browse files
AlexanderAlexander
authored andcommitted
fixed editing cover in private groups and chats. now it is possible to edit cover anywhere
1 parent e762ec4 commit 2c9e4a3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Telegram/SourceFiles/boxes/send_files_box.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,7 @@ void SendFilesBox::pushBlock(int from, int till) {
10691069
? !hasPrice()
10701070
: (type == Ui::AttachActionType::EditCover)
10711071
? (file.isVideoFile()
1072-
&& _captionToPeer
1073-
&& (_captionToPeer->isBroadcast()
1074-
|| _captionToPeer->isSelf()))
1072+
&& _captionToPeer)
10751073
: (file.videoCover != nullptr);
10761074
});
10771075
auto &block = _blocks.back();

0 commit comments

Comments
 (0)