Skip to content

Commit

Permalink
fixes #3963 (Telegram: не удаётся скачать исходящую картинку, если фа…
Browse files Browse the repository at this point in the history
…йл стёрт)
  • Loading branch information
georgehazan committed Feb 5, 2024
1 parent 92937e4 commit d980bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/Telegram/src/proto.cpp
Expand Up @@ -218,7 +218,7 @@ void CTelegramProto::OnErase()

void CTelegramProto::OnEventDeleted(MCONTACT hContact, MEVENT hDbEvent, int flags)
{
if (!hContact || !(flags & CDF_FROM_SERVER))
if (!hContact || (flags & CDF_FROM_SERVER) != 0)
return;

auto *pUser = FindUser(GetId(hContact));
Expand Down
2 changes: 1 addition & 1 deletion protocols/Telegram/src/utils.cpp
Expand Up @@ -395,7 +395,7 @@ bool CTelegramProto::GetMessageFile(
auto *pRequest = new TG_FILE_REQUEST(fileType, pFile->id_, pFile->remote_->id_.c_str());
pRequest->m_fileName = Utf2T(pszFileName);
pRequest->m_fileSize = pFile->size_;
pRequest->m_bRecv = true;
pRequest->m_bRecv = !pMsg->is_outgoing_;
{
mir_cslock lck(m_csFiles);
m_arFiles.insert(pRequest);
Expand Down

0 comments on commit d980bcb

Please sign in to comment.