mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 06:08:07 +00:00
Update download state on automatic/manual file downloads.
This commit is contained in:
parent
4fd6166670
commit
243435ae2c
1 changed files with 9 additions and 0 deletions
|
|
@ -299,6 +299,15 @@ void ChatMessageModel::onFileTransferProgressIndication (const std::shared_ptr<l
|
|||
|
||||
void ChatMessageModel::onMsgStateChanged (const std::shared_ptr<linphone::ChatMessage> &message, linphone::ChatMessage::State state) {
|
||||
updateFileTransferInformation();// On message state, file transfert information Content can be changed
|
||||
if( state == linphone::ChatMessage::State::FileTransferDone) {
|
||||
mContentListModel->updateContents(this);// Avoid having leak contents
|
||||
if( !mWasDownloaded){// Update states
|
||||
bool allAreDownloaded = true;
|
||||
for(auto content : mContentListModel->getSharedList<ContentModel>())
|
||||
allAreDownloaded &= content->mWasDownloaded;
|
||||
setWasDownloaded(allAreDownloaded);
|
||||
}
|
||||
}
|
||||
emit stateChanged();
|
||||
}
|
||||
void ChatMessageModel::onParticipantImdnStateChanged(const std::shared_ptr<linphone::ChatMessage> & message, const std::shared_ptr<const linphone::ParticipantImdnState> & state){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue