Commit abed7081 authored by DanmeiChen's avatar DanmeiChen Committed by DanmeiChen

fix workaround : avoid change not displyed state to displayed stae twice

parent cd6fe530
......@@ -1243,7 +1243,8 @@ void ChatMessage::cancelFileTransfer () {
L_D();
if (d->fileTransferChatMessageModifier.isFileTransferInProgressAndValid()) {
if (d->state == State::InProgress) {
d->setState(State::NotDelivered);
// Workaround: avoid change not displyed state to displayed stae twice
d->setState(State::Displayed);
}
d->fileTransferChatMessageModifier.cancelFileTransfer();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment