Fix thumbnail shortcut to download and not to folder, if the message comes from group chat synchronization (aka file send from the same account on different device)

This commit is contained in:
Julien Wadel 2022-01-26 15:55:34 +01:00
parent 06b4a211a0
commit c84103a0c2

View file

@ -228,7 +228,7 @@ void ContentModel::downloadFile(){
}
void ContentModel::openFile (bool showDirectory) {
if (!mWasDownloaded && !mChatMessageModel->isOutgoing()) {
if ((!mWasDownloaded && !mChatMessageModel->isOutgoing()) || mContent->getFilePath() == "") {
downloadFile();
}else{
QFileInfo info( Utils::coreStringToAppString(mContent->getFilePath()));